Messages posted by Cyrill
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: Cyrill  XML
Profile for Cyrill -> Messages posted by Cyrill [69] Go to Page: 1, 2, 3, 4, 5 Next 
Author Message
maybe this little demo gives you an idea.

regards
Hi everybody.

I'm trying to develop my own componenet (no facelets). The idea is that i understand the jsf concept ... especially the icefaces concept. First I developed it for the standard jsf implementation from sun and now i'd like to move on to icefaces.

As long my class is extended from UIComponentELTag it's always throwing the exception posted below. As son as a change to the depcrecated class (in jsf 1.2) UIComponentTag it's working again.

Code:
java.lang.IllegalArgumentException: Cannot invoke ch.tie.da.jsf.ChooserTag.setMoveListener - argument type mismatch
 	org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
 	org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
 	org.apache.commons.digester.Digester.startElement(Digester.java:1276)
 	org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
 	org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
 	org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
 	org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
 	org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 	org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 	org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 	org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 	org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
 	org.apache.commons.digester.Digester.parse(Digester.java:1586)
 	com.icesoft.faces.webapp.parser.Parser.parse(Parser.java:122)
 	com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:522)
 	com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:152)
 	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
 	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
 	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
 	com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:26)
 	com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:143)
 	com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
 	com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31)
 	com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:48)
 	com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
 	com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
 	com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
 	com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
 	com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:116)
 	com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
 	com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
 	com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
 	com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:76)
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
 


Does anybody know why UIComponenELTag is not working?

regards

cyrill
I added a request to the jira -> http://jira.icefaces.org/browse/ICE-2191
Is there a way to add or manipulate the class attribute?

If yes, I think it would be no problem to add this function.

regards

Cyrill

Hi,

Did you played around with the heartbeatInterval parameter?

Code:
 <context-param>
 <param-name>com.icesoft.faces.heartbeatInterval</param-name>
 <param-value>20000</param-value>
 </context-param>


I can't say it will have an affect on your issue. In the IcefacesDeveloperGuide.pdf you will find more informations on that.

regards

Cyrill
Hi,

You can find a example in the Component Showcase -> http://component-showcase.icefaces.org/component-showcase/ under the navigation point "Calendar".

regards

Cyrill
Hi

Is it possible that you have following entry in your web.xml?

Code:
   <context-param>
     <param-name>com.icesoft.faces.synchronousUpdate</param-name>
     <param-value>true</param-value>
   </context-param>


regards

Cyrill
Hi,

Well I found such a component in the meantime, but not as jsf component. (ComboBox) http://particletree.com/demos/combo-box-demo/.

As IceFaces doesn't have such a component I have to implement it by myself where I have to options.

1. Develop a new component with all the renderes and things
2. Facelets component

Is this correct? If so I've a question to the second option. In my application I build a part of the view dynamic in my java-backing bean.

Code:
HtmlSelectOneListbox select = new HtmlSelectOneListbox()


Does a facelets also contain a java object, that can be used in the backingbeans, in my case for instance a ComboBox java object?

Hope you understand my issue :).. otherwise pls let me know.

regards

Cyrill


Hi.

There was a bug, that sounds like your behaviour. -> http://jira.icefaces.org/browse/ICE-2023

It's fixed in IceFaces Version 1.6.1 so maybe you should try out this version.

regards

cyrill
Hi paulo,

I just looked at your code and replaced the MenuBean.getMenu method with my own code and it worked.

Code:
	public List getMenu() {
 		if(menuModel == null) {
 			menuModel = new ArrayList();
 			MenuItem a = new MenuItem();		
 			a.setValue("Menu One");
 			a.addActionListener(new ActionListener() {
 				public void processAction(ActionEvent arg0)
 						throws AbortProcessingException {
 					System.out.println("Menu One Clicked");			
 				}			
 			});
 			
 			MenuItem b = new MenuItem();
 			b.setValue("Menu Two");
 			b.addActionListener(new ActionListener() {
 				public void processAction(ActionEvent arg0)
 						throws AbortProcessingException {
 					System.out.println("Menu Two Clicked");			
 				}			
 			});
 			
 			MenuItem c = createMenuItem("Menu Three Clicked", "about",
 					"#{menuMb.actionListenerMethodOne}", null,
 					"./myIcon.gif");
 			
 			MenuItem d = createMenuItem("Menu Three Clicked", "about",
 					"#{menuMb.actionListenerMethodTwo}", null,
 					"./myIcon.gif");
 						
 			menuModel.add(a);			
 			
 			a.getChildren().add(b);
 			
 			menuModel.add(c);
 			
 			c.getChildren().add(d);
 		}
 		return menuModel;
 	}


Probably i forgot something thatI'm not able to reproduce the problem.

regards

Cyrill
Are you sure that your ear file doesn't contain the icefraces 1.6.1 library?

regards

Cyrill

Hi Valantis,

The code snipet below I copied from the component showcase. http://component-showcase.icefaces.org/component-showcase/


Code:
                  <ice:selectOneRadio id="SlctDrk"
                                         value="#{selectionTags.selectedDrink}"
                                         partialSubmit="true" >
                         <f:selectItems  id="SlctDrkItms"
                                         value="#{selectionTags.drinkItems}"/>
                     </ice:selectOneRadio>


I think you can use the "value" attribute for default value. So you have to assign a default value to "selectionTags.selectedDrink" in this case and you have it.

regards

Cyrill
Hi,

Does anyone know if there is a jsf component, which merges selectbox and input field.

The component is actually a selectbox like "ice:selectOneMenu" and you can choose one of the elements in the selection but if your value doesn't appear then you should be able to insert your new value. And the next the selectbox is loaded the new value also appears in the list.

Anyone heard of such a component?

regards

Cyrill
Hi,

No, I didn't find any workaround. I solved my problem with HtmlPanelGrid in a HtmlPanelGrid. But would also prefer a dataTable component which supports colspan :).

regards

cyrill
Hi,

Can you pls post the jsf code where you define the datatable and the paginator?

regards

Cyrill
 
Profile for Cyrill -> Messages posted by Cyrill [69] Go to Page: 1, 2, 3, 4, 5 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team