voyent
Messages posted by: philip.breau  XML
Profile for philip.breau -> Messages posted by philip.breau [2745] Go to Page: Previous  1, 2, 3 ... 180 , 181, 182, 183 Next 
Author Message
btw, forgot, you'd also have to put a servlet def and servlet mapping in the web.xml :)
Hi Julio,

Thanks for those. This is an interesting one. I was able to recreate the exact problem you were seeing. When I included a <body> tag in the JSF page, the problems disappeared. We'll definitely look into this, but in the mean-time, I'd suggest putting the <body> tag in.

Thanks,
Philip
Hi Markus,

How is your download method retrieving the document and how are you getting the outputstream?

Thanks,
Philip
Hi Maarten,

When you say you see the 'description' being set in debug, do you mean you're seeing teh setDescription() method called, or just that the value is submitted in the ICEfaces console? You might also try setting immediate="true" on the description inputText component to see if that has any effect?

Thanks,
Philip
Hi Zuma,

Did you get an errors or strange results when you tried to integrate ICEfaces?

Thanks,
Philip
On the surface I'd say that it sounds like the url is being handled by the myfaces view handler. What url are you trying? Have you configured *.iface requests to be handled by the ICEfaces Persistent Faces Servlet?

Thanks,
Philip
Hi J,

Try wrapping the code in an ice:form tag.

Thanks,
Philip
Hi Julio,

We've seen the 2nd error before when a user trys to interact with a page before all of the JavaScript is loaded. But I don't think we've seen the 1st error before. If you could show us more of the JSF page we might have a better idea why it's happening.

Thanks,
Philip
Hi Mauricio,

I think there's probably more information in the tomcat logs. The exceptions you're seeing here are only a subset of the logging output. The exception here seems to have something to do with an invalid JSF page. Check the logs to see if they complain about an unended tag or something like that.

Thanks,
Philip
Hi Maarten,

Your page won't include an HTML form without the ice:form tag, so I would definitely recommend putting that in. he inputFile component renders an file input HTML element, which only functions within an HTML form tag.

Thanks,
Philip
Hi Kelvin,

We've found the source for part of the problem. The XP style theme is missing a few style classes needed for the tabs. This will be fixed in the next release. For now you can include the following classes in your own style sheet as a temporary workaround (I've also included these as an attachment).

Thanks,
Philip

.iceTabSetTabOff{

}


.iceTabSetTabOff .LeftTop-dis{
background-color:transparent;
background-image: url("./css-images/off-left-top-dis.gif");
background-repeat:no-repeat;
background-position:bottom;
text-align:center;
padding-top:1px;
border:none;
height:4px;
}

.iceTabSetTabOff .MiddleTop-dis{
background-color:#DEDEDE;
background-image: url('./css-images/off-mid-top-dis.gif');
background-repeat: repeat-x;
text-align:center;
padding-top:1px;
border:none;
}

.iceTabSetTabOff .RightTop-dis{
background-color:transparent;
background-image: url("./css-images/off-right-top-dis.gif");
background-repeat:no-repeat;
background-position:bottom;
text-align:center;
padding-top:1px;
border:none;
}

.iceTabSetTabOff .LeftMiddle-dis{
background-color:#DEDEDE;
/* background-image: url("./css-images/off-left-mid.gif");
background-repeat:no-repeat;*/
text-align:center;
padding-top:15px;
border:none;
}

.iceTabSetTabOff .MiddleMiddle-dis{
background-color:#DEDEDE;
/* background-image: url("./css-images/off-mid-mid.gif");
background-repeat:repeat-x;*/
text-align:center;
padding-top:5px;
padding-right:15px;
padding-left:15px;
border:none;
white-space: nowrap;
color:#ABABAB;
}

.iceTabSetTabOff .MiddleMiddle-dis a{
text-decoration:none;
color:#ABABAB;
cursor: default;
}

.iceTabSetTabOff .RightMiddle-dis{
background-color:#DEDEDE;
/* background-image: url("./css-images/off-right-mid.gif");
background-repeat:no-repeat;*/
text-align:center;
padding-top:15px;
border:none;
}


.iceTabSetTabOff .LeftBottom-dis{
background-color:transparent;
background-image: url("./css-images/off-left-bot.gif");
background-repeat:no-repeat;
border:none;
}

.iceTabSetTabOff .MiddleBottom-dis{
background-color:transparent;
background-image: url("./css-images/off-mid-bot.gif");
background-repeat:repeat-x;
border:none;
}

.iceTabSetTabOff .RightBottom-dis{
background-color:transparent;
background-image: url("./css-images/off-right-bot.gif");
background-repeat:no-repeat;
border:none;
}
Hi Jussi,

Perhaps I'm not completely clear on what you're trying to do, but I think it might be easier to just bind to backing beans, and use an actionListener from a commandButton to change the tab. I've created a small sample app to illustrate this. A tabbed panel contains 2 tabs, and is bound to a PanelTabSet in a backing bean. The first tab contains a table with mock data. Each data row contains a 'Detail' command button which is linked to an actionListner. In the method connected to the actionListener the selected tab is changed and the detail of the selected data row is shown.

Thanks,
Philip
Hi Kelvin,

With ICEfaces panels or components, such as Panel Stack, it's not a matter of including JSP's, either dynamically or statically, which allows for dyanamic control of the HTML. The JSF component tree is created on page initialization, and then the needed HTML is rendered and passed to the browser. You can test this by simply checking the output HTML markup on an initially loaded page. Press cntrl-shift-t to then bring up the ICEfaces console, and then you can see what DOM updates are later applied to the page. Only the DOM updates for the visible portions of the page are sent.

Thanks for including more information about the disabled tab problem. Our developers are now looking into this. We don't think it's a matter of encoding, however, because we find the same effect with latin character strings that have > 1 word. The proper width of the tab seems to not be applied in some cases, and the contents are 'squished'. Whole words are not wrapped, but multiple words, or, in your case, multiple ideographs, are wrapped.

As for the problem with updates to the hidden fields...I assume that are you setting the hidden fields in the JSF template through a backing bean binding? Where is the value coming from? If they're coming from another field, you might try setting immediate="true" to force value setting at the start of the lifecycle, for whichever value is the source. You might also try more logging in your backing beans, in getters and setters, and valueChangeListeners etc. to find out what values you actually have throughout the lifecycle.

Thanks,
Philip
Hi Justin,

It sounds like the web application isn't being loaded in the container. Try checking the Tomcat logs. You might find it complaining about a parsing error, or a web app initialization error. This might provide more clues.

Thanks,
Philip
Hi Maarten,

I think you might have better luck if you redirect to a custom servlet, or perhaps use a commandLink to a new url not served by the PersistentFacesServlet. The ICEfaces framework doesn't currently define the behaviour for hijacking the servlet response. But, for instance, you could force a redirect by doing the following:

if (!context.getResponseComplete()) {
try{
context.getExternalContext().redirect("download-servlet");
}
catch( IOException e ){
e.printStackTrace();
}
}

and then implement the custom servlet with that url mapping, coordinating session variables, for file parameters, and security, between your action listener method and the download servlet.

Thanks,
Philip
 
Profile for philip.breau -> Messages posted by philip.breau [2745] Go to Page: Previous  1, 2, 3 ... 180 , 181, 182, 183 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team