You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Craig McClanahan (JIRA)" <ji...@apache.org> on 2006/04/26 08:14:49 UTC

[jira] Moved: (SHALE-35) NullPointerException when ClayJsfid parameter of Clay component has a null value

     [ http://issues.apache.org/struts/browse/SHALE-35?page=all ]

Craig McClanahan moved STR-2678 to SHALE-35:
--------------------------------------------

      Project: Shale  (was: Struts Action 1)
          Key: SHALE-35  (was: STR-2678)
    Component:     (was: Shale)
      Version:     (was: Nightly Build)
    Assign To:     (was: Struts Developer Mailing List)

> NullPointerException when ClayJsfid parameter of Clay component has a null value
> --------------------------------------------------------------------------------
>
>          Key: SHALE-35
>          URL: http://issues.apache.org/struts/browse/SHALE-35
>      Project: Shale
>         Type: Bug

>  Environment: Operating System: All
> Platform: All
>     Reporter: Alexandre Poitras

>
> Ok, in my application I implement a template engine à la Tiles using Clay.
> I have the following component declared in the global clay config :
>    <component jsfid="baseLayout" extends="clay">
>        <attributes>
>            <set name="clayJsfid" value="/gabarit/gabarit.html"/>
>        </attributes>
>    </component>
> Then I have the page selectServices.xml wich contains :
> <?xml version='1.0' encoding="UTF-8"?>
> <!DOCTYPE view PUBLIC
>       "-//Apache Software Foundation//DTD Shale Clay View Configuration 1.0//EN"
>       " http://struts.apache.org/dtds/shale-clay-config_1_0.dtd">
> <view>
>     <component jsfid="/selectServices.xml" extends="baseLayout">
>         <symbols>
>             <set name="titre" value="Accueil - Portail des services ministériels" />
>             <set name="entete" value="/gabarit/entete.html" />
>             <set name="piv" value="/gabarit/piv.html" />
>             <set name="ivpied" value="/gabarit/pivpied.html" />
>             <set name="contenu" value="" />
>         </symbols>
>     </component>
> </view>
> And finally the page gabarit.html wich has a basic structure like that :
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns=" http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
> <head jsfid="clay" clayJsfid="@entete" allowBody="false">
> </head>
> <body>
> <div id="piv-bandeau" jsfid="clay" clayJsfid="@piv" allowBody="false">
> </div>
> <div id="contenu" jsfid="clay" clayJsfid="@contenu" allowBody="false">
> </div>
> <div id="piv-pied" jsfid="clay" clayJsfid="@ivpied" allowBody="false">
> </div>
> </body>
> </html>
> If you run this, you will receive a NullPointerException because contenu symbol
> has a null value.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org