Hi Guys, I do have a very similar problem.
My flow definition is
Code:
<var name="searchForm" class="org.starthello.web.data.forms.SearchForm" />
<view-state id="searchMeeting" view="searchCriteria.xhtml" model="searchForm">
<on-render>
<evaluate expression="mapService.updateCoordinatesByAdress(searchForm)"/>
</on-render>
<transition on="search" to="browseMeetings" >
</transition>
<transition on="searchCoordinates" >
<render fragments="searchForm:mapFragment"></render>
</transition>
</view-state>
now in my xhtml i do hava an area definded with ui:mapFragment, which contains a google map, an adress field and two inputText fields that should display the coordinates that were calculated and stored in the form as seen in the flow above.
here the relevant code
Code:
<ui:fragment id="mapFragment">
<m:map width="500px" height="350px" latitude="#{searchForm.latitude}" longitude="#{searchForm.longitude}" id="map" renderOnWindowLoad="false" >
<m:mapControl name="GLargeMapControl" position="G_ANCHOR_BOTTOM_RIGHT"/>
<m:mapControl name="GMapTypeControl"/>
<m:marker latitude="#{searchForm.latitude}" longitude="#{searchForm.longitude}" draggable="true" >
<m:eventListener eventName="dragend" jsFunction="showStreet"/>
</m:marker>
</m:map>
<h:inputText id="address" required="false" value="#{searchForm.address}"/>
<sf:commandButton id="searchCoordinatesButton" action="searchCoordinates" processIds="searchForm" value="Auf Karte"/>
<h:inputText id="longitude" required="false" value="#{searchForm.longitude}" rendered="true"/>
#{searchForm.longitude}
<h:inputText id="latitude" required="false" value="#{searchForm.latitude}" rendered="true"/>
#{searchForm.latitude}
now when i execute the transition, it mostly works fine, the map is rerendered. but the input fields containing the latitude/longitude are not updated. if i completely refresh the page (by F5), they're updated correctly.
I am using webflow 2.0.7
can anyone help me on this?
TIA, simon