Michael Binette wrote:
> I was originally using MyFaces and the JSF Bridge.  I had 3 different
> portlets in one WAR and it deployed and worked fine.  I had one portlet
on
> one page and the other two on another.  I then found out that the JSF
> validations do not work with MyFaces so I decided to switch back to
> JSF 1.1from SUN and to use their bridge.
>
> My portlets are basically working fine if I only put one per page.  If I
> try
> to put two or my portlets (different portlets, same WAR) on the page
then
> the links within the portlet do not work.
>
> For instance, one portlet has a "New Customer" commandButton and the
other
> has a "New District" commandButton.  Both work fine if I only have one
> portlet on the page or if I maximize the portlet prior to clicking the
> button.  But if both are on the same page and I click the button,
nothing
> happens.  The browser does have some activity but then simply keeps me
on
> the same page.
>
> Anyone run into this?
>
> Does anyone have Sun's JSF Portlets running in J2?

I think it may be unique id issue.
For example, myfaces had the following issue:
http://issues.apache.org/jira/browse/MYFACES-454
(as Phanidhar mentioned, it's not fixed fully..)
I think Sun RI may has the same issue. So, I use
Teeda(http://teeda.seasar.org/) as JSF impl, and
I do not think Teeda has it :)

Thanks,
  shinsuke


Originally I had a ton of problems.  My second portlet on the same page was
showing the data from the first portlet!  I then gave the <h:form> a unique
id and that fixed the problem.  The links are within the form so I didn't
think they all had to be unique between portlets as long as their parent,
the form, had a unique id.

I will look at the source in my browser and see if I can figure that one
out.  Has anyone found a simple solution for this using the Sun RI.  I don't
really want to switch again to another JSF implementation and don't want to
switch back to MyFaces without validation support.

--
Thanks,
Michael Binette

Reply via email to