RE: [Trinidad]: multiline table rows tr:table with nested tr:column - Tags

2007-11-01 Thread Kuhn, Harald
Hi Max, 

thanks for your response. 
But, I think non-nested columns isn't generally an option, as colspan should be 
considered also.
So, what I want to achieve is, i.e.:

header row 1:  |Header 1.1 (colspan=2)   |Header 1.2 
(colspan=1)|
header row 2:  |Header 2.1 (colspan=1)|Header 2.2 (colspan=1)|Header 2.3 
(colspan=1)|
data row 1:|Data 1.1  .. |Data 1.2  
|
data row 2:|Data 2.1  |Data 2.2  |Data 2.3  
|

Further, each of the columns should be sortable.

Any ideas, how to a achieve this.

Thanks

  Harald


**
Harald Kuhn
AirPlus International
Business Information Services
Phone:   +49 (0) 61 02 204-821
Fax: +49 (0) 61 02 204-139
E-Mail:   [EMAIL PROTECTED]
Internet:  www.airplus.com
**



Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 
Neu-Isenburg · Germany · Geschäftsführer: Patrick W. Diemer (Vorsitz), Lutz 
Logemann · Vorsitzender des Aufsichtsrates: Stephan Gemkow · Handelsregister: 
Amtsgericht Offenbach/Main, HRB 8119



-Original Message-
From: max.starets [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 31, 2007 7:44 PM
To: users@myfaces.apache.org
Subject: Re: [Trinidad]: multiline table rows tr:table with nested 
tr:column - Tags



Harald,

Have you tried using non-nested columns and rendering a break (br) between
the lines?
Column component can contain several indexed children.
Note that nesting columns makes sense only if you want to group columns in
the header.

Regards,

Max Satrets


Kuhn, Harald wrote:
 
 Hi, 
 
 we are trying build a table, where each logical row (from the Backing
 bean) is displayed as 2 rows in HTML output.
 So the result should look similar to this image (from our
 struts-application, we want to migrate to JSF):
  Picture (Device Independent Bitmap) 
 
 What I tried to to is to use a tr:table + nested tr:column - Tags
 i.e.
 tr:document xmlns:ui=http://java.sun.com/jsf/facelets;
   xmlns:h=http://java.sun.com/jsf/html;
   xmlns:f=http://java.sun.com/jsf/core;
   xmlns:tr=http://myfaces.apache.org/trinidad; title=Multiline Table
 
   tr:form
 tr:table value=#{dynamicTable.data} 
   var=tableRow
   varStatus=tableStatus 
   rowBandingInterval=1 
   rows=3 
   noWrap=true
 sortable=true
   tr:column sortable=true 
noWrap=true
sortProperty=kategorie
  defaultSortOrder=ascending
   f:facet name=header
  tr:outputText value=1. and 2. column (sort= Kategorie) /
   /f:facet
   
   tr:column sortable=true noWrap=true
 sortProperty=kategorie
 defaultSortOrder=ascending
 f:facet name=header
kategorie
   /f:facet
 
   tr:outputText value=#{tableRow['kategorie']} /
 /tr:column
   
   tr:column sortable=true noWrap=true
  sortProperty=transaktionen 
  defaultSortOrder=ascending
 f:facet name=header
transaktionen
   /f:facet
 
 tr:outputText value=#{tableRow['transaktionen']} /
   /tr:column
   
 tr:outputText value=#{tableRow['kategorie']} /
   /tr:column
   
   tr:column sortable=true noWrap=true 
sortProperty=transaktionen
defaultSortOrder=ascending
   f:facet name=header
 tr:outputText value=3. Spalte (sort = transaktionen) /
   /f:facet
 
   tr:column sortable=true noWrap=true
  sortProperty=betragCompanyAccount 
  defaultSortOrder=ascending
 f:facet name=header
Betrag CA
   /f:facet
 
   tr:outputText value=#{tableRow['betragCompanyAccount']}
 /
   /tr:column
   
 tr:outputText value=#{tableRow['transaktionen']} /
   /tr:column
   /tr:table
   /tr:form
 /tr:document
 
 #{dynamicTable.data} returns just a list of Beans (public final
 ListAirlineBean getData())
 
 Unfortunatly, only the header -facets are rendered as I would expect. But,
 the data rows not.
 
 The output (after the first paging request) in different browsers look as
 followed:
 FF 2.0:
  Picture (Device Independent Bitmap) 
 
 IE7:
  Picture (Device Independent Bitmap) 
 Logging says:
 2007-10-29 13:00:26,906   WARN 
 org.apache.myfaces.trinidadinternal.io.DebugHtmlResponseWriter: Illegal
 HTML: cannot put a  element in a table 

Re: [Trinidad] PPR table header facet

2007-11-01 Thread Paul Mander

Not sure this is the same thing but thanks anyway.


max.starets wrote:
 
 Paul,
 
 This bug has been fixed:
 https://issues.apache.org/jira/browse/TRINIDAD-771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 
 Regards,
 Max Starets
 
 
 Paul Mander wrote:
 
 setting the partial triggers to mytable:myselection works fine. Not
 sure about ::mytable:myselection as I don't have an environment to test
 at the moment.
 
 My query was that I feel uncomfortable exposing my markup to the internal
 representation of the component's id. It would be nice to be able to
 reference the real id of the component myselection in such a way that
 hides the fact that myfaces/trinidad suffixes it with its parent id and
 :. 
 
 
 Andrew Robinson-5 wrote:
 
 Try this an let me know how it works:
 tr:table
   id=mytable
   var=row
   value=#{listBean.items}
   partialTriggers=::mytable:myselection
   tr:column
 f:facet
   name=header
   headerText=Select
   tr:selectBooleanCheckbox
 id=myselection
 label=Select All
 autoSubmit=true
 valueChangeListener=#{listBean.selectAll} /
 /f:facet
 tr:selectBooleanCheckbox
   id=selectRow
   value=#{row.select}/
   /tr:column
 /tr:table
 
 If that doesn't work try partialTriggers=::mytable:selectRow to try
 to trigger off of the value change event.
 
 -Andrew
 
 On 10/26/07, Paul Mander [EMAIL PROTECTED] wrote:

 I'm trying get get a table to update itself via PPR on the back of an
 event
 source from the header facet of a table column.

 tr:table var=row id=mytable value=#{listBean.items}
 partialTriggers=myselection
  tr:column
  f:facet name=header  headerText=Select
   tr:selectBooleanCheckbox label=Select All
 autoSubmit=true
 id=myselection  valueChangeListener=#{listBean.selectAll} /
  /f:facet
  tr:selectBooleanCheckbox id=selectRow
 value=#{row.select}/
  /tr:column
 /tr:table

 The problem appears to be that the real id of the input in the header
 is
 mytable:myselection. I can get this working by setting the partial
 triggers on the table to this value. I am then relying on the way that
 trinidad/myfaces generates id's for components. Should I be doing this?


 --
 View this message in context:
 http://www.nabble.com/-Trinidad--PPR-table-header-facet-tf4697400.html#a13427448
 Sent from the MyFaces - Users mailing list archive at Nabble.com.


 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-Trinidad--PPR-table-header-facet-tf4697400.html#a13524665
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Combining a listbox to select items with a form to modify them

2007-11-01 Thread Edward Steel

Hello again List,

I have a listbox (SelectSingleListbox) containing items. Beneath this
list are comandLinks to add/remove these items and move them up/down.
This is working correctly.

Next to the list I have a form, which reflects the selected item's
properties, including name and description. The description is what
appears in the list and the name is not seen by the user, it's in a
hidden field. 

The list has onchange=submit(), and a ValueChangelListener attached.
It is immediate, so the event is processed before the fields' values are
looked at. The value change listener considers the value of the list's
selected item's name and the value of the hidden field, to determine
whether the change is a new item being selected in the list (in which
case the fields are cleared, thank you myfaces wiki, and in the render
phase are filled from the model), or if the change has been caused by
the user changing some fields and hitting save (in which case the fields
should not be cleared, and the values should be remembered into the
validation and model update phases). So far so good, this is working.

However, it requires the user to hit a save button. What I would prefer
would be if, when changing the selected item in the list, the fields'
values are applied to the old item, and then cleared and populated with
values from the new item. I'm having trouble seeing how this would fit
into the JSF lifecycle.

Effectively I would like this to happen:

List containing A Immediate value change
changed to B  -  listener called, sets A  -   
  as value of list and 
  bean property


process validations   Update model updates
-  occurs on fields of   -  values in A, but sets- 
A (and presumably selected item to B.  
for B  as an item
in list)

-  clear fields  -  render response
  (fields show B's value)


If any validation errors occur, show A selected and A's values in the
fields. Should not interfere with the normal clicking on items in the
list, and manipulating them with links.

Is this too inconsistent and crazy? Should I be splitting process
validation/ update model each into two separate phases? Is that even
possible?

As far as I can see I have two avenues to pursue: do some sort of magic
in the value change listener to perform validations and process updates
then clear the fields, or have fields for every item's values, using css
to hide the ones that aren't relevant. The first option sounds
complicated. The second heavyweight.

Any ideas? JSF RI 1.1, trinidad and facelets, if it makes a difference.

Regards,
__ 
Edward Steel - Consultant
t +44 (0) 1483 817222 | m +44 (0) 7939 657 259
a Detica | Surrey Research Park | Guildford | GU2 7YP | UK
__ 
www.detica.com http://www.detica.com/ 





This message should be regarded as confidential. If you have received this 
email in error please notify the sender and destroy it immediately.
Statements of intent shall only become binding when confirmed in hard copy by 
an authorised signatory.  The contents of this email may relate to dealings 
with other companies within the Detica Group plc group of companies.

Detica Limited is registered in England under No: 1337451.

Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, England.




tiles 2

2007-11-01 Thread Garner, Shawn
I was just wondering if there were plans to update the
JspTilesViewHandlerImpl to work 
with the Tiles 2 official 2.0.5 GA release.
 
Shawn


-Message Disclaimer-

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to [EMAIL PROTECTED] and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act (E-Sign)
unless a specific statement to the contrary is included in this message.

While this communication may be used to promote or market a transaction
or an idea that is discussed in the publication, it is intended to provide
general information about the subject matter covered and is provided with
the understanding that The Principal is not rendering legal, accounting,
or tax advice. It is not a marketed opinion and may not be used to avoid
penalties under the Internal Revenue Code. You should consult with
appropriate counsel or other advisors on all matters pertaining to legal,
tax, or accounting obligations and requirements.


Re: [Trinidad] tr:chart doesn't work inside tr:iterator?

2007-11-01 Thread venkata guddanti
I am not sure I understand this issue. The value attribute for the tr:chart
must be bound to a ChartModel instance. So if you did that did you add
component getter/setter inside it which is an instance of CoreChart?

Regards,
Venkata

On 10/31/07, Dan Potter [EMAIL PROTECTED] wrote:

 t:dataList seemed to behave the same way.  I did a little more
 experimenting and I can print out the title of the charts returned by the
 iterator or dataList, so they aren't null.  The chart tag just thinks the
 object is null.  I get this error.

 javax.faces.el.PropertyNotFoundException: Error setting property
 'component' in bean of type null
 caused by
 tr:chart value=#{opticChart} binding=#{opticChart.component}

 if I take out binding=#{opticChart.component} I get a null pointer
 exception when it tries to call getXValues on the chart object.

 Here's the code again:
 If I comment out the tr:chart tag the title of all charts in the array are
 correctly displayed.  The chart tag is getting a null chart object for some
 reason.
 t:dataList var=chart value=#{displayBean.summaryCharts }

 tr:outputText value=#{chart.title}/

 tr:chart value=#{chart}
 XMajorGridLineCount=6 YMajorGridLineCount=6
 inlineStyle=width:200px; height:200px; background-color:white;
 gradientsUsed=false
 legendPosition=none perspective=false type=verticalBar
 animationDuration=0
 rendered=true templateSource=/styles/TrinidadChartTemplate.svg
 /tr:chart

 /t:dataList







 On 10/31/07, Andrew Robinson [EMAIL PROTECTED] wrote:

  try the t:dataList and report the findings, ppl have found it to be less
  buggy.
 
  On Oct 31, 2007 12:16 PM, Dan Potter  [EMAIL PROTECTED] wrote:
   Hello,
   I have a tr:iterator iterating over an arrayList of charts in my
  backing
   bean.  The chart variable returned is null though, causing errors in
  the
   tr:chart tag.  I've checked the arrayList of charts on the backing
  bean side
   and they are not null.  Am I missing something or do charts not work
  well
   with tr:iterator?
   The charts in the arrayList extend
   org.apache.myfaces.trinidad.model.ChartModel and I have been able to
  use the
   chart tag outside of an iterator with a single chart, but I would like
  to be
   able to iterate over a list.
   I am using trinidad 1.0.2
  
   tr:iterator var=chart value=#{displayBean.summaryCharts}
  
   tr:chart value=#{chart} binding=#{chart.component}
   XMajorGridLineCount=6 YMajorGridLineCount=6
   inlineStyle=width:200px; height:200px; background-color:white;
   gradientsUsed=false
   legendPosition=none perspective=false type=verticalBar
   animationDuration=0
   rendered=true templateSource=/styles/TrinidadChartTemplate.svg
/tr:chart
  
   /tr:iterator
  
 




Re: [Trinidad] tr:chart doesn't work inside tr:iterator?

2007-11-01 Thread venkata guddanti
You could also try using af:forEach instead of af:iterator.

Regards,
Venkata

On 11/1/07, venkata guddanti [EMAIL PROTECTED] wrote:

 I am not sure I understand this issue. The value attribute for the
 tr:chart must be bound to a ChartModel instance. So if you did that did you
 add component getter/setter inside it which is an instance of CoreChart?

 Regards,
 Venkata

 On 10/31/07, Dan Potter [EMAIL PROTECTED] wrote:
 
  t:dataList seemed to behave the same way.  I did a little more
  experimenting and I can print out the title of the charts returned by the
  iterator or dataList, so they aren't null.  The chart tag just thinks the
  object is null.  I get this error.
 
  javax.faces.el.PropertyNotFoundException: Error setting property
  'component' in bean of type null
  caused by
  tr:chart value=#{opticChart} binding=#{opticChart.component}
 
  if I take out binding=#{opticChart.component} I get a null pointer
  exception when it tries to call getXValues on the chart object.
 
  Here's the code again:
  If I comment out the tr:chart tag the title of all charts in the array
  are correctly displayed.  The chart tag is getting a null chart object for
  some reason.
  t:dataList var=chart value=#{displayBean.summaryCharts }
 
  tr:outputText value=#{chart.title}/
 
  tr:chart value=#{chart}
  XMajorGridLineCount=6 YMajorGridLineCount=6
  inlineStyle=width:200px; height:200px; background-color:white;
  gradientsUsed=false
  legendPosition=none perspective=false type=verticalBar
  animationDuration=0
  rendered=true templateSource=/styles/TrinidadChartTemplate.svg
  /tr:chart
 
  /t:dataList
 
 
 
 
 
 
 
  On 10/31/07, Andrew Robinson [EMAIL PROTECTED]  wrote:
 
   try the t:dataList and report the findings, ppl have found it to be
   less buggy.
  
   On Oct 31, 2007 12:16 PM, Dan Potter  [EMAIL PROTECTED] wrote:
Hello,
I have a tr:iterator iterating over an arrayList of charts in my
   backing
bean.  The chart variable returned is null though, causing errors in
   the
tr:chart tag.  I've checked the arrayList of charts on the backing
   bean side
and they are not null.  Am I missing something or do charts not work
   well
with tr:iterator?
The charts in the arrayList extend
org.apache.myfaces.trinidad.model.ChartModel and I have been able to
   use the
chart tag outside of an iterator with a single chart, but I would
   like to be
able to iterate over a list.
I am using trinidad 1.0.2
   
tr:iterator var=chart value=#{displayBean.summaryCharts}
   
tr:chart value=#{chart} binding=#{chart.component}
XMajorGridLineCount=6 YMajorGridLineCount=6
inlineStyle=width:200px; height:200px; background-color:white;
gradientsUsed=false
legendPosition=none perspective=false type=verticalBar
animationDuration=0
rendered=true templateSource=/styles/TrinidadChartTemplate.svg
 /tr:chart
   
/tr:iterator
   
  
 
 



[Trinidad] Poll disabling during dialog lifespan

2007-11-01 Thread Bertrand, Shawn R
Is the poll mechanism supposed to be disabled when a dialog is displayed
via the Trinidad dialog framework?

 

We're using 1.0.2 in our application, and have a poll on our main page.
When a dialog is displayed, it seems the poll is still occurring.  This
is usually a good thing, as it allows us to still periodically check for
session validation, but it seems to also have an impact on the
actionListener defined on the dialog.  This behavior only exhibits in
Firefox 2.x but not all the time.

 

Has anyone else seen this behavior - either polling still occurring with
dialogs displayed and/or the actionListener within a dialog not being
called?

 

Thanks in advance,

 

Shawn Bertrand

Tyco Electronics Corporation



RE: tiles 2

2007-11-01 Thread Garner, Shawn
Can you let me know when a version is in the nightly snapshot of the
sandbox?


I tried to change the current one to use the new tiles but they changed
it too much and I couldn't figure it out.


Shawn

-Original Message-
From: Matthias Wessendorf
Sent: Thursday, November 01, 2007 1:13 PM
To: MyFaces Discussion
Subject: Re: tiles 2

We currently dicussing this on the dev-list.
Looks like it will endup in Sandbox .


-M

On 11/1/07, Garner, Shawn   wrote:


 I was just wondering if there were plans to update the
 JspTilesViewHandlerImpl to work
 with the Tiles 2 official 2.0.5 GA release.

 Shawn


-Message Disclaimer-

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to [EMAIL PROTECTED] and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act (E-Sign)
unless a specific statement to the contrary is included in this message.

While this communication may be used to promote or market a transaction
or an idea that is discussed in the publication, it is intended to provide
general information about the subject matter covered and is provided with
the understanding that The Principal is not rendering legal, accounting,
or tax advice. It is not a marketed opinion and may not be used to avoid
penalties under the Internal Revenue Code. You should consult with
appropriate counsel or other advisors on all matters pertaining to legal,
tax, or accounting obligations and requirements.


Re: tiles 2

2007-11-01 Thread Matthias Wessendorf
We currently dicussing this on the dev-list.
Looks like it will endup in Sandbox .


-M

On 11/1/07, Garner, Shawn [EMAIL PROTECTED] wrote:


 I was just wondering if there were plans to update the
 JspTilesViewHandlerImpl to work
 with the Tiles 2 official 2.0.5 GA release.

 Shawn

 -Message Disclaimer-

 This e-mail message is intended only for the use of the individual or
 entity to which it is addressed, and may contain information that is
 privileged, confidential and exempt from disclosure under applicable law.
 If you are not the intended recipient, any dissemination, distribution or
 copying of this communication is strictly prohibited. If you have
 received this communication in error, please notify us immediately by
 reply email to [EMAIL PROTECTED] and delete or destroy all copies of
 the original message and attachments thereto. Email sent to or from the
 Principal Financial Group or any of its member companies may be retained
 as required by law or regulation.

 Nothing in this message is intended to constitute an Electronic signature
 for purposes of the Uniform Electronic Transactions Act (UETA) or the
 Electronic Signatures in Global and National Commerce Act (E-Sign)
 unless a specific statement to the contrary is included in this message.

 While this communication may be used to promote or market a transaction
 or an idea that is discussed in the publication, it is intended to provide
 general information about the subject matter covered and is provided with
 the understanding that The Principal is not rendering legal, accounting,
 or tax advice. It is not a marketed opinion and may not be used to avoid
 penalties under the Internal Revenue Code. You should consult with
 appropriate counsel or other advisors on all matters pertaining to legal,
 tax, or accounting obligations and requirements.




-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org


Fwd: Panel Tabbed Pane

2007-11-01 Thread Hasnain Badami
There is an other issue, related to the earlier one, which I think is weird.
Possibly I am doing something wrong
Copy this code and execute

 %@ page contentType=text/html;charset=UTF-8 language=java %

%@ taglib prefix=f uri=http://java.sun.com/jsf/core; %

%@ taglib prefix=h uri=http://java.sun.com/jsf/html; %

%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %

%@ taglib uri=http://myfaces.apache.org/tomahawk; prefix=t%







f:view



html



head



f:loadBundle basename=com.prytania.resource.Messages var=messages/



title



h:outputText value=#{messages['portfolio']} /

h:outputText value=#{portfolioUI.portfolioName} /



/title



t:stylesheet path=/report.css/



t:stylesheet path=/tablepresentation.css/

/head



body class=mainBody 



h:form id=portfolioFatherForm 

t:saveState value=#{portfolioTabIndex}/

t:panelTabbedPane

styleClass=levelOneTabbedPane

width=100%

bgcolor=#CC

activeTabStyleClass=levelOneActiveTab

inactiveTabStyleClass=levelOneInactiveTab

activeSubStyleClass=levelOneActiveSub

inactiveSubStyleClass=levelOneInactiveSub

tabContentStyleClass=levelOneTabContent

serverSideTabSwitch=true

id=pDetailTab



t:panelTab label=#{messages['snapshot_view']} 

c:if test=${portfolioTabIndex==null || portfolioTabIndex.index==0}

f:subview id=tabportfoliodetailsnapshotview 



h:outputText value=snapshot /



/f:subview



/c:if

/t:panelTab

t:panelTab label=#{messages['time_series_view']} 

h:outputText value=timeseries /



/t:panelTab

t:panelTab label=#{messages['documents']} 

c:if test=${portfolioTabIndex.index==2}

h:outputText value=documents /



/c:if

/t:panelTab

t:panelTab label=#{messages['analysis']} 

c:if test=${portfolioTabIndex.index==3}

f:subview id=tabportfoliodetailanalysisview 

h:outputText value=analysis /



/f:subview

/c:if

/t:panelTab

t:tabChangeListener type=
com.prytania.model.backingbeans.PortfolioDetailTabManager /

/t:panelTabbedPane

/h:form



/body



/html

/f:view

PortfolioDetailTabManager.java


package com.prytania.model.backingbeans;


import javax.faces.context.FacesContext;
import javax.faces.event.AbortProcessingException;

import org.apache.log4j.Logger;
import org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane;
import org.apache.myfaces.custom.tabbedpane.TabChangeEvent;
import org.apache.myfaces.custom.tabbedpane.TabChangeListener;



public class PortfolioDetailTabManager implements TabChangeListener
{

 private static final long serialVersionUID = 1L;
 private static final Logger log = Logger.getLogger(
PortfolioDetailTabManager.class);

 public PortfolioDetailTabManager()
 {
  log.info(Executing PortfolioDetailTabManager());
  log.info(Exiting PortfolioDetailTabManager());
 }
 public void processTabChange(TabChangeEvent event) throws
AbortProcessingException
 {
  log.info(TabSupport:processPortfolioDetailTabChange() called  +
event.getNewTabIndex());
  PortfolioTabIndex tabIndices =
(PortfolioTabIndex)FacesContext.getCurrentInstance().getApplication().getVariableResolver().resolveVariable(
FacesContext.getCurrentInstance(), portfolioTabIndex);
  HtmlPanelTabbedPane tabbedPane =
(HtmlPanelTabbedPane)event.getComponent();

  if(tabIndices!=null)
   tabIndices.setIndex(event.getNewTabIndex());
  if(tabbedPane!=null)
   tabbedPane.setSelectedIndex(event.getNewTabIndex());
 }
}

PortfolioTabIndex

package com.prytania.model.backingbeans;

import java.io.Serializable;

import org.apache.log4j.Logger;

/**
 *
 * @author hbadami
 * @jsf.bean
 *  name=portfolioTabIndex
 *  scope=request
 */

public class PortfolioTabIndex implements Serializable
{
 private static final long serialVersionUID = 1L;
 private static final Logger log = Logger.getLogger(PortfolioTabIndex.class
);

 private int index=0;
 public int getIndex() {
  return index;
 }
 public void setIndex(int index)
 {
  log.info(The old index is  + this.index +  the new index is  + index);
  this.index = index;
 }

 public PortfolioTabIndex()
 {
  log.info(Executing PortfolioTabIndex());
  log.info(Exiting PortfolioTabIndex());
 }

}


now when I execute this code, only the code in the selected tab gets
executed, but the tabbed pane creates additonal tabs automatically when you
move select tabs back and forth. Any idea why is this happening? Thanks in
advance

-- Forwarded message --
From: Hasnain Badami [EMAIL PROTECTED]
Date: Oct 31, 2007 5:06 PM
Subject: Panel Tabbed Pane
To: MyFaces Discussion users@myfaces.apache.org


HI

I am trying to use the panel tabbed pane with server side tab switching. I
am using myfaces 1.1.6 Snapshot and tomahawak 1.1.7. Consider the following
code snippet
portfolioDetailUI backing bean is in request scope.


t:panelTabbedPane

styleClass=levelOneTabbedPane

width=100%

bgcolor=#CC

activeTabStyleClass=levelOneActiveTab

inactiveTabStyleClass=levelOneInactiveTab

activeSubStyleClass=levelOneActiveSub

inactiveSubStyleClass=levelOneInactiveSub

tabContentStyleClass=levelOneTabContent

serverSideTabSwitch=true


[trinidad] JS error with navigationTree

2007-11-01 Thread Steve Horne
Using Trinidad 1.0.3-

This was working in 1.0.1:  A navigationTree component that when clicking on
a twisty (disclose) icon, gets the following error on the javascript
console:

[Invalid PPR response. The response-headers were:\nServer:
Apache-Coyote/1.1\nX-Powered-By: Servlet 2.4...]
[Error , TypeError: a5 has no properties message=a5 has no properties, 
delivering XML request status chan

Any help with this issue would be greatly appreciated.


Re: tiles 2

2007-11-01 Thread Matthias Wessendorf
Hi!

there is a patch attached to TOMAHAWK-1115 (see [1]). That doesn't
really introduce a
huge dependency for your project.

Maybe you want to try it on your own, till MyFaces / Tomahawk ships it ?

-M

[1] https://issues.apache.org/jira/browse/TOMAHAWK-1115

On 11/1/07, Garner, Shawn [EMAIL PROTECTED] wrote:
 Can you let me know when a version is in the nightly snapshot of the
 sandbox?


 I tried to change the current one to use the new tiles but they changed
 it too much and I couldn't figure it out.


 Shawn

 -Original Message-
 From: Matthias Wessendorf
 Sent: Thursday, November 01, 2007 1:13 PM
 To: MyFaces Discussion
 Subject: Re: tiles 2

 We currently dicussing this on the dev-list.
 Looks like it will endup in Sandbox .


 -M

 On 11/1/07, Garner, Shawn   wrote:
 
 
  I was just wondering if there were plans to update the
  JspTilesViewHandlerImpl to work
  with the Tiles 2 official 2.0.5 GA release.
 
  Shawn


 -Message Disclaimer-

 This e-mail message is intended only for the use of the individual or
 entity to which it is addressed, and may contain information that is
 privileged, confidential and exempt from disclosure under applicable law.
 If you are not the intended recipient, any dissemination, distribution or
 copying of this communication is strictly prohibited. If you have
 received this communication in error, please notify us immediately by
 reply email to [EMAIL PROTECTED] and delete or destroy all copies of
 the original message and attachments thereto. Email sent to or from the
 Principal Financial Group or any of its member companies may be retained
 as required by law or regulation.

 Nothing in this message is intended to constitute an Electronic signature
 for purposes of the Uniform Electronic Transactions Act (UETA) or the
 Electronic Signatures in Global and National Commerce Act (E-Sign)
 unless a specific statement to the contrary is included in this message.

 While this communication may be used to promote or market a transaction
 or an idea that is discussed in the publication, it is intended to provide
 general information about the subject matter covered and is provided with
 the understanding that The Principal is not rendering legal, accounting,
 or tax advice. It is not a marketed opinion and may not be used to avoid
 penalties under the Internal Revenue Code. You should consult with
 appropriate counsel or other advisors on all matters pertaining to legal,
 tax, or accounting obligations and requirements.



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org


[Tobago] Weird problem with tc:link inside tc:sheet

2007-11-01 Thread Ramon Ziai
Hi,

I have a strange problem with links inside tc:sheet rows. I am new to
Tobago and JSF in general, so please bear with me if this is an obvious
problem. Consider the following fragment:

tc:sheet columns=2*;6*;2* var=doc value=#{requestScope.docList}
showHeader=false

...

tc:column 
  f:facet name=layout
tc:gridLayout columns=*/
  /f:facet
  tc:cell
tc:link label=#{doc.title} action=viewDoc
actionListener=#{browseController.linkClicked}
  f:param name=docId value=#{doc.id}/
/tc:link
  /tc:cell
  tc:cell
tc:out value=#{doc.description}/
  /tc:cell
/tc:column

...

/tc:sheet


Now if such a link is clicked, the page is just reloaded and empty,
since the request-scoped data is gone. No attempt to even construct the
controller is made, let alone call the actionListener method. If I place
the link outside the sheet, things work as expected.

The Tobago version is 1.0.12, MyFaces is 1.2 and I'm developing with
Tomcat6 under Linux i386, if that's necessary info at all.

I've found issues in the list archives that sound similar but were in
fact mostly concerned with getting the selection index in the sheet, a
point I cannot reach yet.

Any hints would be most welcome.

Best,
Ramon


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil