Shasi Mitra

Ranch Hand
+ Follow
since Nov 27, 2008
Shasi likes ...
Spring Flex Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shasi Mitra

Yes. Spring and JSF can be used together. Go through the below link for configuration

http://static.springsource.org/spring/docs/1.2.9/api/org/springframework/web/jsf/DelegatingVariableResolver.html


12 years ago
JSF
Did you try increasing "numberOfViewsInSession"? Not the logical views. Are you getting this issue when you are using same managed bean for a number of pages, something like in a wizard?
12 years ago
JSF
Go with AroundAdvice if you are using SpringAOP..Otherwise you have to create proxy class for all your classes and do method interposition using Java reflections.
12 years ago
JSF
Augustine - When did you migrate to facelets?? Have you enclosed all the jsf tags in the pop up in <f:view>. Hope you did not miss any basic thing..There are many pop-ups which are working fine right?
12 years ago
JSF
Try having this "isIdDefined" in a hidden variable so that it is available for the next request..If you are using myfaces you can save its state. Or you can put just this variable alone in session scope. There are so many options. Dont worry
12 years ago
JSF
you can have a hidden textbox bound to a bean property and set the value to the hidden textbox in the javascript.

eg: <h:inputHidden id="yyy" value=#{bean.global}"/>

In javascript method : document.getElementById('yyy').value="sdfsdfs";
12 years ago
JSF
Problem is here

<h:selectOneMenu value="#{RegistrationForm.gender}"/>
<f:selectItem itemLabel="Male" itemValue="M"/>
<f:selectItem itemLabel="Female" itemValue="F"/>
</h:selectOneMenu>
12 years ago
JSF
Check the navigation rule in faces-config once. Did you specify proper navigation rule from this page once you hit the action button?
12 years ago
JSF
Hi all, our web service is produced at .net side and consumed at java side. We are expecting binary data from the web service. I am getting response but while parsing I get the following exception.

javax.xml.stream.XMLStreamException: An invalid XML character (Unicode: 0x2d) was found in the prolog of the document.
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:252


The response I get is in the below format

Content-ID: <http://tempuri.org/0>;
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><StreamFileContentsResponse xmlns="http://activitylogsetup.webservice.time.hrii.adp.com/"><StreamFileContentsResult>AAAAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBQKAAAAAAChQLg+wfWRfSAAAAAgAAAAKAAAAFFFFFFFFFFFFFFFFFS5DSEdMb2cgc3RhcnRlSSSSSSSSSSDDDDDDDDDDDDDDDDDFFFFFFFFFFFFFFFFFFFFFFFFF</StreamFileContentsResult></StreamFileContentsResponse></s:Body></s:Envelope>
--uuid:a157f930-6eef-44b6-aeca-7199032d9770+id=1--

As per the wsdl I should receive the response in byte[] format but parsing fails. To fix this I do not know whether the response is not using proper encoding or the WS adapter has a limitation when binary data is passed by value within the body of the document. Let me know if you can give any inputs on this.
12 years ago
Spring in action has a chapter on JSF integration
12 years ago
JSF
Are you calling your jsp using faces i.e., /faces/Hello.jsp
12 years ago
JSF
What is your requirement? If you want a button on clicking which, validation shouldnt happen. Then you can set the attribute immediate = true.
12 years ago
JSF
You can give this <context:component-scan base-package="org.example"/> . Now, all your beans in the package will be instantiated.
12 years ago
Nothing can beat Spring in Action.
12 years ago