Hi,
I'm having problem with jsf converter behavior.
This is converter code:
public class OfferPriceConvertor implements Converter{
|
| public Object getAsObject(FacesContext arg0, UIComponent arg1, String
string) {
| BigDecimal price = null;
| try {
|
Hi Stephen,
as validation are you referring to explicitly added jsf validation, because I
don't use that?
This is html code:
h:inputText id=price value=#{offerBean.offer.price}
converter=offerPriceConvertor class=inputText/h:inputText
I think is important to add that set-er for
Hi,
it was validation error. I got price: Conversion error occurred. from
h:messages.
BUT why is validation happening?
I even changed getAsObject method body to:
public Object getAsObject(FacesContext arg0, UIComponent arg1, String string) {
| return new BigDecimal(0);
| }
Hi Stephen,
this is offer without irrelevant information:
| public class Offer implements Serializable, Cloneable {
|
| private BigDecimal price;
|
| public BigDecimal getPrice() {
| return price;
| }
|
| public void setPrice(BigDecimal price) {
Hi,
I am back with my solution for this issue.
This is what I did to solve problem (I hope this can help someone):
SERVER SIDE:
1) Create Filter:
| public class SeamRemotingSessionValidationFilter implements Filter {
|
| public void init(FilterConfig filterConfig) throws
Hi Pete,
but isn't this feature that's missing (or bug)?
I wouldn't post this in JIRA if you think this doesn't belongs there!
Thanks,
Uros!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071563#4071563
Reply to the post :
Hi.
Me again.
Is it possible that Seam engineers overlooked this real life situation?
Do you have some recommendation?
Would this be fixed in Seam 2.0?
I really enjoy working with Seam so I hope you would understand this as my
attempt to help.
Thanks,
Uros!
View the original post :
Hi,
after session expires I can access bean with Seam Remoting (as I understand new
bean is created). Problem is that other necessary beans are not there. I would
like to redirect page from which ajax request is sent if session is expired.
What is preferred way with Seam to handle this?
I am
Just to add: I am using Seam 1.2.1 GA.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070684#4070684
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070684
___
jboss-user mailing
Hi azalea,
now I have to add page conversation-required=true
no-conversation-view-id=/somewhere.xhtml
for all 10 pages in wizard.
Is there some way to make this shorter (like
no-conversation-view-id=/offer*.xhtml )?
Thanks,
Uros!
View the original post :
Hi azalea,
CORRECTION:
Instead of no-conversation-view-id=/offer*.xhtml there should be
view-id=/offer*.xhtml?
page view-id=/offer*.xhtml
| conversation-required=true
| no-conversation-view-id=/somepage.xhtml
| /page
Thanks,
Uros!
View the original post :
Hi azalea,
it doesn't work. There are to problems:
1) redirection doesn't happen
2) Exception occurs:
WARNING: Exception Processing ErrorPage[errorCode=404, location=/startpage.jsf]
| ClientAbortException: java.net.SocketException: Software caused connection
abort: socket write error
|
Hi,
what should I use to achieve same functionality as with
@Conversational(ifNotBegunOutcome=error)
because this is deprecated in 1.2.1GA?
Thanks,
Uros!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4056546#4056546
Reply to the post :
Hi Gavin,
but how to redirect to error page?
Thanks,
Uros!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4056555#4056555
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4056555
Hi,
I have 2 questions:
1) is it possible to set conversation scope in faces-config.xml; in the same
way as for session scope: managed-bean-scopesession/managed-bean-scope
2) how go get conversation scoped bean through java code, as it's possible for
session scoped bean:
MyBean myBean =
Hi petemuir,
both Contexts.lookupInStatefulContexts(myBean) and
Contexts.getConversationContext().get(myBean) return null when I try to get
conversation bean in session scoped bean.
I open pop-up window from conversation bean (offerBean). That pop-up use other
session scoped bean
Hi petemuir,
pop-up is not in conversation. I don't it should be inside conversation. Pop-up
use other session scoped bean.
Am I making mistake in use?
In what situations is possible to access conversation scoped bean?
Thanks,
Uros!
View the original post :
Hi,
I will explain my problem hopping someone can help:
From page which is in conversation I open pop-up window with url:
offer.jsf?lang=enid=173type=offerId. Page offer.jsf use session (doesn't
need to be session; can be request to) scoped bean offerPreviewBean. In
offerPreviewBean bean I
Hi petemuir,
this is link:
offer.jsf?lang=enid=173type=offerId
this is pages.xml part:
page view-id=/offer.xhtml
| param name=lang value=#{offerPreviewBean.lang}/
| param name=id value=#{offerPreviewBean.id}
|converterId=javax.faces.Integer/
|
Hi,
is it possible to have EL enhancements for actionListener
(actionListener=#{hotelBooking.bookHotel(hotel)})?
Thanks,
Uros!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054770#4054770
Reply to the post :
Hi Gavin,
can you give me a link to documentation that explains use (in 1.3)? Also does
this way I lose ActionEvent parameter?
Thanks,
Uros!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054855#4054855
Reply to the post :
Hi,
how to remove conversationId in URL from pages where I don't want it?
Now it's on every page.
Thanks,
Uros!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054442#4054442
Reply to the post :
Hi Gavin,
are you saying that with h:commandLink i can't remove it?
We are trying to add seam in existing application with 30+ pages and 150+
h:commandLink-s. We definitely don't want to change them all.
Is there some workaround?
Thanks,
Uros!
View the original post :
Hi Gavin,
that is exactly what we do.
So if we remove conversationId would disappear, right?
Thanks,
Uros!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054460#4054460
Reply to the post :
Hi Gavin,
corection: So if we remove redirect/ conversationId would disappear, right?
redirect was disappear previously!
Thanks,
Uros!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4054463#4054463
Reply to the post :
Hi,
I want to add Seam to our application which has UI implemented in JSF-RI-1.1 +
Facelets.
- Plan is to use Seam capabilities only in UI in 1st step and in 2nd to
connect it with ORM layer (implemented throw Hibernate 3).
- We deploy app on Tomcat 5.5.
I have created test project fot
Hi fers,
I don't use maven (no experience with it). Is it possible to find created
example somewhere?
Thanks,
Uros.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053900#4053900
Reply to the post :
Hi fers,
I followed instruction on site and created project. It was actually very simple
- just download maven and execute command - that's all.
Thanks,
Uros.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053915#4053915
Reply to the post :
Hi,
I am trying to start app with seam on tomcat 5.5. I have spend whole day and I
can't.
Questions:
1) What are required jars (all of them) for seam to work on tomcat 5.5 with JSF
RI 1.1 and Facelets BUT WITHOUT EJB3 - JUST JPA + HIBERNATE?
2) Also how should web.xml and faces-config.xml
29 matches
Mail list logo