voyent
Messages posted by: futhark77  XML
Profile for futhark77 -> Messages posted by futhark77 [55] Go to Page: Previous  1, 2, 3, 4
Author Message
Hello,

I am migrating a (small) app from 1.8.2 to 3.1.0. The app is also using Spring Security 2.0.5 which I wasn't planning to upgrade (yet).

I am having a very annoying problem where I am not redirected to my login page after session expiration. Yet, my access log shows I should be redirected. As a matter of fact, I land on my login page if I reload.

142.168.64.70 - - [24/Aug/2012:14:43:06 -0400] "POST /app/tool.iface HTTP/1.1" 302 -
142.168.64.70 - - [24/Aug/2012:14:43:06 -0400] "GET /app/index.iface HTTP/1.1" 200 195

More specifically, I expect to be redirected after any user any user input. For ex, if the user attempts to submit a form or selects something in the app menu.

I am redirected if I force a GET. Say, if click in the browser location bar and simply I hit enter.

I was wondering if any one else had the same issue?

Also, how I can tell if my app runs in compatibility mode?

Thanks!
I think it had been too long since I made a fresh start/build. Everything works now (no push server). Once I saw the auctionMonitor work, I went to my app and it worked too.
Hello,

While experimenting heartbeat web.xml values, I have found the pong is systematically lost. I have looked around the forum but I didn't find how I could debug this.

I am using ICEFaces 1.8.1.
I have Tomcat 6.0.20 running on my dev PC. My browser has a direct connection to it.
I tried deploying the push server (even though I don't have multiple apps push enabled apps). That does not help (I have made the port explicit, just in case).
I couldn't find any trace of an 'async http' / ahs server in my project.

Where should I be looking???

Thanks!
The problem is the float. If I remove it, the tooltip will appear for my bubble only. But that means I have to tinker with my layout. Annoying.
I have a Search button and right next to it a bubble. When the cursor hovers the bubble, I want the tooltip to appear. It works... but the tooltip also appears when the cursor hovers the search button. It has probably something to do with the nesting but I don't understand the logic. It looks like a bug to me. How can I avoid this to happen?

Thanks!

Code:
 <ice:form id="search">
 
   <ice:panelTooltip id="searchTip">
     <f:facet name="body">
       <h:outputText value="blah" />
     </f:facet>
   </ice:panelTooltip>
   
   <ice:panelGrid columns="3" columnClasses="alignTop">
   
     <ice:outputLabel />
     <ice:panelGroup>
       <ice:commandButton style="color:white ; background-color:#49166D ; float:left" value="Search" action="#{Bean.process}" />
       <ice:panelGroup panelTooltip="searchTip" style="position: relative; left: 5px">
         <img src="images/bubble.png" />
       </ice:panelGroup>
     </ice:panelGroup>
     
   </ice:panelGrid>
   
 </ice:form>
 
Here's an example showing my problem.

I have a simple DynaBean created from json-lib:

Code:
     JSONObject o = JSONObject.fromObject("{\"key1\":null, \"key2\":\"str\", \"key3\": {\"bool\":false}}");
     DynaBean dyn = (DynaBean) JSONObject.toBean(o);
 


I have defined a getter for the bean and another for one of its fields:

Code:
     public DynaBean getDyn() {
         return dyn;
     }
     public String getKey2() {
         return (String) b.get("key2");
     }
 


First I did a test to prove my DynaBean is ok. In my ICEFaces page, I added this. It printed "str" as expected:

Code:
 <ice:outputText value="#{ClaimSearchBean.key2}"/>
 


Next, I tried to access the field via the bean. That didn't work. I got a javax.el.PropertyNotFoundException: Property 'key2' not found on type net.sf.ezmorph.bean.MorphDynaBean.

Code:
 <ice:outputText value="#{ClaimSearchBean.dyn.key2}"/>
 


This is very unfortunate. I am collecting data from external programs in Json form and I want to display it as directly as possible. I didn't want to have to declare beans before I could display my data.

Any help would be much appreciated.
Hello,

Is it possible to read DynaBean properties from ICEFaces? I tried that yesterday but it didn't work. I received errors about missing properties, even though these properties exist.

What would be a good alternative or workaround to make DynaBean work?

Thanks!
I have been trying to build a simple dynamic dataTable based on two lists.

rowModel is a ListDataModel of List<String> objects, where each list contains N Strings.
headerModel is a ListDataModel of N String objects.

I had problems with the way models were iterated until I introduced the varStatus attribute. The following ended working as expected.

Code:
         <ice:dataTable value="#{bean.rowModel}" var="row">
             <ice:columns value="#{bean.headerModel}" var="hdr" varStatus="sta">
                 <f:facet name="header">
                     <ice:outputText value="#{hdr}"/>
                 </f:facet>
                 <ice:outputText value="#{row[sta.index]}"/>
             </ice:columns>
         </ice:dataTable>
 


Hope it helps someone.
I am working on an Icefaces1.8.1+Facelets project under Netbeans 6.5.1 and I'm having a hard time deciding if I should work with xhtml or jspx files. Not that I think the extension matters so much in the end, but it does matter for Netbeans. Let me explain.

Xhtml files appeared to be the best choice because auto completion and palette both worked when editing them. Later, I discovered auto complete is lost if I strip the <html> tag. I had decided to wrap my content into a <f:subview> with appropriate xmlns attributes. Why is auto completion linked to the <html> tag? Do I really have to leave the <html> tag in my files?

I also tried jspx to see how they behave. They provide me with auto completion but the palette window appears empty. Why is that? I want both!

How do you guys get to use auto complete and palette window at the same time?

EDIT: I am not using the graphical editor and I don't want to use it.
I am preparing to start a project using ICEfaces 1.8.1 and Facelets in Netbeans 6.5.1. I'd like to share various issues I have encountered during project creation.

- The list of libraries automatically added to the project differ depending on the frameworks I select during the project creation. If I create the project with Visual ICEfaces+Icefaces+JSF+Visual JSF, I end up with much more libraries in the project than if I select Visual ICEfaces only. The interesting thing is, adding the Visual ICEfaces framework automatically adds other frameworks, but not all libraries associated with them. Why?

- I had no auto-completion for ice tags in xhtml files until I manually added the "ICEfaces Run-Time 1.8.1" library to the project. Shouldn't this lib be included automatically? Eventually, I have found the library is automatically added when creating a project with ICEfaces only (not visual). Since I'm not going to use the visual editor, that's probably what I should have done in the first place.

- Sometimes I am unable to create a project after selecting the Visual ICEfaces framework. The "Finish" button remains grayed out. The problem goes away after restarting NB.

- When I create the project with all 4 frameworks selected, two libraries are added with an absolute path pointing to program files\...\ext\locale. They are webui-jsf_fr.jar and webui-jsf-suntheme.jar. Looks like that has nothing to do with icefaces.

Regards.
 
Profile for futhark77 -> Messages posted by futhark77 [55] Go to Page: Previous  1, 2, 3, 4
Go to:   
Powered by JForum 2.1.7ice © JForum Team