studs-user Mailing List for Studs MVC Framework+
Status: Beta
Brought to you by:
mojavelinux
You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(4) |
Oct
(5) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
(13) |
May
(1) |
Jun
(12) |
Jul
(36) |
Aug
(4) |
Sep
(3) |
Oct
|
Nov
(5) |
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
(13) |
Apr
(1) |
May
(28) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
(14) |
Dec
(8) |
| 2007 |
Jan
(2) |
Feb
(9) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Dan A. <dan...@gm...> - 2009-03-01 08:08:01
|
Not to sound callous, but I have essentially moved on. Developing Studs played a key role in my understanding of the Java Servlet API and helped me make the transition into Java EE. My viewpoint is that there are plenty of solid frameworks in Java EE (and even Ruby and PHP) to use that continuing to develop Studs just doesn't make a lot of sense for me. With that said, there are plenty of satisified Studs developers. I will do what I can to turn the project over to those interested in hacking on it. -Dan On Tue, Nov 6, 2007 at 5:36 AM, Juan Carlos Rey Anaya <jc...@um...> wrote: > Hello, veery long without news about studs. > Is studs in dead center? > > Dan, very busy I suppose :-) > Cheers > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > studs-user mailing list > stu...@li... > https://lists.sourceforge.net/lists/listinfo/studs-user > -- Dan Allen Senior Software Engineer, Red Hat | Author of Seam in Action http://mojavelinux.com http://mojavelinux.com/seaminaction NOTE: While I make a strong effort to keep up with my email on a daily basis, personal or other work matters can sometimes keep me away from my email. If you contact me, but don't hear back for more than a week, it is very likely that I am excessively backlogged or the message was caught in the spam filters. Please don't hesitate to resend a message if you feel that it did not reach my attention. |
|
From: Dan A. <dan...@gm...> - 2009-03-01 08:01:50
|
You just set the multiline attribute to true. -Dan On Tue, Nov 14, 2006 at 6:27 AM, Juan Carlos Rey Anaya <jc...@um...> wrote: > I miss this tag working. > I have revised WEB-INF/tld/studs-html.tld, a definition for textarea is > not included. Now that I have downloaded studs repository I have given a > glimpse over studs/trunk/src/studs/taglib/html and confirm that it is > not a version matter. As in studs 0.9.8, there is no definition for > textarea. > > The thing that confuse me is because this tag is documented in Studs > HTML taglib documentation. > > Excuse me if it is so trivial that I have not seen it ;-) > Cheers > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > studs-user mailing list > stu...@li... > https://lists.sourceforge.net/lists/listinfo/studs-user > -- Dan Allen Senior Software Engineer, Red Hat | Author of Seam in Action http://mojavelinux.com http://mojavelinux.com/seaminaction NOTE: While I make a strong effort to keep up with my email on a daily basis, personal or other work matters can sometimes keep me away from my email. If you contact me, but don't hear back for more than a week, it is very likely that I am excessively backlogged or the message was caught in the spam filters. Please don't hesitate to resend a message if you feel that it did not reach my attention. |
|
From: <cl...@ya...> - 2007-11-15 03:03:21
|
Hey all,
I understand this place is kinda quiet. :)
I'm a Java Struts programmer, and I have some experience with PHP...So
recently I decided to give Studs a go.
So far, I really like it. It's got some quirks, but for the most part
it seems like a pretty solid package. One of these days when I get some
of that "spare time" stuff I keep hearing about, I hope to be able to
contribute to development.
However...I'm running into an issue, and I'm not entirely sure where
it's coming from.
In the validate() method--er, function--of my ActionForm, whenever it
returns errors Studs is trying to send it to the default forward
specified in the <global-forwards> section of my struts-config.xml
file, rather than the <forward> specified in the "input" attribute.
Here's the relevant pieces pf my struts-config.xml:
<global-forwards>
<!-- Default forward to "welcome" action -->
<forward name="welcome" path="/Main.do"/>
</global-forwards>
....
<action
path="/ChangePassword"
type="action.ChangePasswordAction"
name="changePasswordActionForm"
scope="request"
validate="true"
input="input">
<forward name="input" path="/pages/changePassword.psp" />
<forward name="success" path="/pages/changePasswordSuccess.psp" />
<forward name="invalidSession" path="/pages/invalidSession.psp" />
</action>
When validate() returns one or more ActionMessages, it's going to
Main.do rather than the /pages/changePassword.psp script.
I can't figure out why, and it's driving me slightly mad.
Any pointers?
Thanks,
Adam
|
|
From: Juan C. R. A. <jc...@um...> - 2007-11-06 10:36:16
|
Hello, veery long without news about studs. Is studs in dead center? Dan, very busy I suppose :-) Cheers |
|
From: Matt S. <mat...@gm...> - 2007-08-21 08:03:12
|
I have been working for the past few months developing a social networking application in STUDs. I have noticed as far back as I can remember that my controllers have been executed twice any time I visit a page. I have a wrapper class 'UserAction' that contains the 'execute' method wherein I setup my controllers and log some events. This, then calls the executeActually method, which is overloaded in each of my controllers. I log this event and here is an example of what happens when you visit my "/home.action": [ERROR] 21 Aug 2007 00:53:40 geekster.action.user.UserAction - ============================== Entering execute @2007-08-21 00:53:40 ============================== [ERROR] 21 Aug 2007 00:53:41 geekster.action.user.UserAction - ============================== Leaving execute took 0.001 seconds, rendering view @2007-08-21 00:53:41 ============================== [ERROR] 21 Aug 2007 00:53:45 geekster.action.user.UserAction - ============================== Entering execute @2007-08-21 00:53:45 ============================== [ERROR] 21 Aug 2007 00:53:46 geekster.action.user.UserAction - ============================== Leaving execute took 0.001 seconds, rendering view @2007-08-21 00:53:46 ============================== Until now this has been an annoyance, but not a show stopper. However, recently I created a controller that needs to only be executed once and I cannot figure out what is causing this behavior. Has anyone run into this? Is there a solution? If not, any ideas where I might look to figure it out. thanks, -- Matt Snider http://www.mattsnider.com http://www.mint.com 925.998.2004 |
|
From: Juan C. R. A. <jc...@um...> - 2007-02-16 11:55:50
|
Hello, continuing with the problem I already commented to this list before. I have had some time to give a in deeper glance and this is what I have found. The point is when I want to assign a 'skin' attribute in application scope, so later actions can use it to select the appropiate style sheet and images. (This happens in http://www.centrosierranet.com) Main action have several includes throught template:insert.psp. One of them is a .psp which contains partial content: ... ... ... <c:set var="ctx"><html:rewrite page="/index.php"/></c:set> <iframe scrolling="no" height="%40" width="%100" frameborder="0" src="${ctx}/calendar.do?${qs_calendar}"> </iframe> ... ... ... This code calls the action responsible of calculate what days to anchor and of sending this information to the view, so the calendar can be displayed accordingly. In this scenario, application scoped 'skin' variable disappear... If this code is removed. Then 'skin' variable remains in application context forever. Curious, isn't it? Juan Carlos |
|
From: Earnie B. <ea...@us...> - 2007-02-13 15:00:47
|
Quoting Newton Wagner <new...@gm...>: > > People here uses LazyForms for Struts.. but I did not found something > like that for Studs... You know an active maillist or forum about > Studs? > Studs is really just getting a following. This is the active list. Your idea sounds good to me but you'll need to do the implementation. Provide patches to the appropriate project patch tracker for review. The Struts implementation in Studs isn't complete so you may need to implement some core features. Earnie |
|
From: Juan C. R. A. <jc...@um...> - 2007-02-13 14:06:29
|
Newton Wagner wrote:
> I think it's because doing that, I can use one class with two or more
> methods... an action called UserAction could have deleteUser() and
> addUser() methods.
>
> It's the way that Java programmers works here. And we want to use
> Studs to use the same framework for both languages.
Uhmm yes it's a matter of taste ;-)
I have hit almost the same stone. One action must to behabiour itself
depending
of the context in which it was called. How I resolved this?
In struts-config.xml
...
<action path="/addUser"
type="action.UserAction">
<forward name="index" path="/pages/action.psp"/>
</action>
<action path="/deleteUser"
type="action.UserAction">
<forward name="index" path="/pages/action.psp"/>
</action>
...
in classes/action/UserAction.php:
...
if ($request->getServletPath() == '/deleteUser.do')
{
$this->deleteUser(...);
}
else
{
$this->AddUser(...);
}
...
At the end, listing the action in struts-config.xml is the same to map
differents action with the
same handler. Because you must to explicity write concrete actions in a
static file.
> People here uses LazyForms for Struts.. but I did not found something
> like that for Studs... You know an active maillist or forum about
I'm sorry. I don't know :-(
Juan Carlos
|
|
From: Newton W. <new...@gm...> - 2007-02-13 12:45:10
|
I think it's because doing that, I can use one class with two or more methods... an action called UserAction could have deleteUser() and addUser() methods. It's the way that Java programmers works here. And we want to use Studs to use the same framework for both languages. People here uses LazyForms for Struts.. but I did not found something like that for Studs... You know an active maillist or forum about Studs? Thank you Juan. 2007/2/13, Juan Carlos Rey Anaya <jc...@um...>: > Why do you want to do that? > Which is the usefulness of doing that? > > For me as programmer is the same to call a function 'execute' or > 'call_me'... > > Excuse my lack of foresightless... > Juan Carlos > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > studs-user mailing list > stu...@li... > https://lists.sourceforge.net/lists/listinfo/studs-user > -- Newton Wagner |
|
From: Juan C. R. A. <jc...@um...> - 2007-02-13 09:31:39
|
Why do you want to do that? Which is the usefulness of doing that? For me as programmer is the same to call a function 'execute' or 'call_me'... Excuse my lack of foresightless... Juan Carlos |
|
From: Newton W. <new...@gm...> - 2007-02-12 16:29:26
|
Hi,
I'm thinking about to use Studs in some apps here, but I want to know
if there is something like LazyForms for it, just like struts. :).
And I've done something I would like to share with you... using
Struts, we can call a another method instead of execute() by passing
the "parameter" attribute off the action tag. So, to do the same thing
with Studs, I've changed the processActionExecute() method in
RequestProcessor class:
function &processActionExecute(&$request, &$response, &$action,
&$form, &$mapping)
{
$parameter = $mapping->getParameter() ? $mapping->getParameter() : 'execute';
// try {
$result =& $action->$parameter($mapping, $form, $request, $response);
//$result =& $action->execute($mapping, $form, $request, $response);
...
}
What you guys think about this?
Sorry my bad english... I don't speak English as much as I want to. :).
--
Newton Wagner
|
|
From: Earnie B. <ea...@us...> - 2007-02-09 09:31:58
|
Quoting Juan Carlos Rey Anaya <jc...@um...>: > > Is there anybody experiencing this before me? > The only thing I can guess is that you're running into different results with different models of By Ref handling in different versions of PHP. Earnie |
|
From: Juan C. R. A. <jc...@um...> - 2007-02-09 09:13:32
|
Dan Allen wrote: > I will indeed wait for it. Until then, feel free to post any > questions, comments or contributions to the list. > >> Please, don't put it because the URL is transient. I will send you the >> final URL. The final URL (almost finished) http://centrosierranet.com/ |
|
From: Juan C. R. A. <jc...@um...> - 2007-02-09 08:53:48
|
Hello, I am suspicious about this. I'm trying to save an attribute called 'skin' in application scope So, the user can change the global appearance with a click. But... I don't know why from time to time, this attribute 'vanishes off the face of the earth...' The point is, that in different machines it yield different behabiour. In the developer machine, a Debian Sarge, with a older php version and older apache, it remains for a time before reset. In my personal machine with fedora core 6 and with newer php version I simply can't put an attribute in Application scope. And in the production machine, http://centrosierranet.com/ it behaviours the same as the older Debian... Is there anybody experiencing this before me? Juan Carlos. PD: In my personal machine, studs-basic application neither works... http://joker.sci.uma.es/studs-basic/index.php/welcome.do |
|
From: Earnie B. <ea...@us...> - 2007-01-17 14:25:47
|
Quoting Juan Carlos Rey Anaya <jc...@um...>:
>
> in top of listado-usuarios.psp, so it becomes:
> ========================================
> <%@ page language="php" %>
> <%@ taglib uri="/WEB-INF/tld/studs-html.tld" %>
> <h1>Lista de Usuarios</h1>
> <html:messages id="message" message="true" scope="session">
> <div class="message"><c:out value="${message}"/></div>
> </html:messages>
> .
> .
> .
> it works like a charm. It is supposed to be included at the beginning of
> user-list.psp, isn't it?
> Is this normal? a bug? something else?
I'm not sure but it sounds normal to me. Can you find Struts
documentation that says otherwise? I'm far from knowledgable of Struts.
Earnie Boyd
--
Please post responsibly:
* Use text posts instead of html; many list members just trash mail with html.
* Do not use multipart mime to send both text and html versions.
* Do not top post replies; post inline with the parts you are responding to.
* Trim the post replies; remove irrelevant information from the quoted
article.
* Original posters:
** Provide small complete examples of the problem.
** Provide the full command that produced errors.
** Provide the versions of the software used.
|
|
From: Juan C. R. A. <jc...@um...> - 2007-01-17 09:54:27
|
Hello I've been experiencing some problems html:message related. I would
like to show some
messages when an user's data are modified (yes, yes... I have read the
golflog example and
I have done the same...).
Here is my stuff. Likewise I'm missing something trivial.
struts-config.xml
=================
<action path="/EditUserSubmit"
type="action.EditUserSubmitAction"
name="UserForm"
scope="request"
validate="true"
input="editor">
<forward name="denied" path="/pages/user-login.psp"/>
<forward name="editor" path="/EditUser.do" />
<forward name="next" path="/ListUsers.do" redirect="true"/>
</action>
EditUserSubmitAction.php
========================
.
.
.
import('studs.action.ActionMessage');
import('studs.action.ActionMessages');
.
.
.
$messages =& new ActionMessages();
$messages->add(c('ActionMessages::GLOBAL_MESSAGE'),
new ActionMessage('user.edit.profile.success',
$user->getLogin()));
$this->saveMessages($request, $messages, true);
return $mapping->findForward('next');
ListUsersAction.php same as golflog, and don't do nothing special.
user-list.php
=============
<%@ page language="php" %>
<%@ taglib uri="/WEB-INF/tld/phase-core.tld" %>
<%@ taglib uri="/WEB-INF/tld/studs-html.tld" %>
<%@ taglib uri="/WEB-INF/tld/studs-template.tld"%>
<template:insert template="/pages/template.psp">
<template:put name="title" content="Agregar/Editar usuarios"
direct="true"/>
<template:put name="arriba" content="/pages/header.psp"/>
<template:put name="abajo" content="/pages/footer.psp"/>
<template:put name="centro" content="/pages/listado-usuarios.psp"/>
</template:insert>
and
listado-usuarios.psp
====================
<%@ page language="php" %>
<h1>Lista de Usuarios</h1>
<html:messages id="message" message="true" scope="session">
<div class="message"><c:out value="${message}"/></div>
</html:messages>
.
.
.
and here is the result
---------------------------------------------------------------
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.
exception
horizon.lang.RootException: Fatal error: Unknown(): The script tried to
execute a method or access a property of an incomplete object. Please
ensure that the class definition actionmessage of the object you are
trying to operate on was loaded _before_ the session was started in
/var/www/s/WEB-INF/lib/studs/taglib/html/HtmlMessagesTag.php on line 215
at [PHP].main(:)
Testing more and more... if I insert next line:
<%@ taglib uri="/WEB-INF/tld/studs-html.tld" %>
in top of listado-usuarios.psp, so it becomes:
========================================
<%@ page language="php" %>
<%@ taglib uri="/WEB-INF/tld/studs-html.tld" %>
<h1>Lista de Usuarios</h1>
<html:messages id="message" message="true" scope="session">
<div class="message"><c:out value="${message}"/></div>
</html:messages>
.
.
.
it works like a charm. It is supposed to be included at the beginning of
user-list.psp, isn't it?
Is this normal? a bug? something else?
Cheers.
|
|
From: Juan C. R. A. <jc...@um...> - 2006-12-19 09:10:48
|
Earnie Boyd wrote: > Quoting Juan Carlos Rey Anaya <jc...@um...>: > I'm not sure if you made a mistake by saying python docs or if you > actually were looking there but Studs is PHP... :-) What were I thinking about... ;-) Cheers |
|
From: Earnie B. <ea...@us...> - 2006-12-18 15:28:38
|
Quoting Juan Carlos Rey Anaya <jc...@um...>:
> Juan Carlos Rey Anaya wrote:
>> As I don't know is this behabiour is configurable, I have recurred to a
>> home-made remedy :-)
>> function unescapeString($string, $charsToUnescape = array('\''),
> >{...}
>
> Yesterday I had a glimpse at string python docs, I didn't know there
> were a function 'stripslashes' that does the same although stud's one
> is more generic.
>
> Also there is a function called addslashes.
I'm not sure if you made a mistake by saying python docs or if you
actually were looking there but Studs is PHP. Based on
http://us2.php.net/stripslashes the documentation seems to indicated
that stripslashes should be used on values as a result of addslashes.
Earnie Boyd
--
Please post responsibly:
* Use text posts instead of html; many list members just trash mail with html.
* Do not use multipart mime to send both text and html versions.
* Do not top post replies; post inline with the parts you are responding to.
* Trim the post replies; remove irrelevant information from the quoted
article.
* Original posters:
** Provide small complete examples of the problem.
** Provide the full command that produced errors.
** Provide the versions of the software used.
|
|
From: Juan C. R. A. <jc...@um...> - 2006-12-18 13:24:30
|
Juan Carlos Rey Anaya wrote:
> As I don't know is this behabiour is configurable, I have recurred to a
> home-made remedy :-)
> function unescapeString($string, $charsToUnescape = array('\''),
>{...}
Yesterday I had a glimpse at string python docs, I didn't know there
were a function 'stripslashes' that does the same although stud's one
is more generic.
Also there is a function called addslashes.
Cheers
|
|
From: Earnie B. <ea...@us...> - 2006-12-14 13:58:47
|
Quoting Juan Carlos Rey Anaya <jc...@um...>:
> Juan Carlos Rey Anaya wrote:
>> Hello again...
>> I have a form in which a field represents html code written by the user.
>> I have observed the text value that gets inserted in the DB is escaped.
>
> Well, One more time I have lost inside code and couldn't detect where
> the string is escaped :-(
> But, I have detected the function that makes the final espace:
>
> WEB_INF/lib/horizon/util/StringUtils::escapeString
>
> As I don't know is this behabiour is configurable, I have recurred to a
> home-made remedy :-)
> unescaping the final string returned by the ActionForm setter method.
> If it were of interest to somebody, here is the function that makes it.
>
>
> function unescapeString($string, $charsToUnescape = array('\''),
> $escapeChar = '\\')
> {
> foreach ($charsToUnescape as $charToUnescape)
> {
> $chr_unescaped = str_replace($escapeChar, '', $charToUnescape);
> $string = str_replace($escapeChar . $chr_unescaped, $chr_unescaped,
> $string);
> }
> return $string;
> }
>
Thanks. It makes sense that you need to unescape before setting the
values for the form elements.
Earnie Boyd
--
Please post responsibly:
* Use text posts instead of html; many list members just trash mail with html.
* Do not use multipart mime to send both text and html versions.
* Do not top post replies; post inline with the parts you are responding to.
* Trim the post replies; remove irrelevant information from the quoted
article.
* Original posters:
** Provide small complete examples of the problem.
** Provide the full command that produced errors.
** Provide the versions of the software used.
--
******************************************************************************
* The user of this server has agreed to allow the use of a trailer in the *
* mail that he sends for advertising purposes. This advertisment is added *
* by the server and is not in the control of the user of our services. *
******************************************************************************
Toshiba Satellite P105-S6114 Notebook
http://give-me-an-offer.com/offers/computers/laptop/toshiba
PlayStation 3 Auctions
http://give-me-an-offer.com/offers/auctions/au1
Samsung HP-S4253 42" High Definition Plasma TV
http://give-me-an-offer.com/offers/tv/plasma
|
|
From: Juan C. R. A. <jc...@um...> - 2006-12-14 09:37:29
|
Juan Carlos Rey Anaya wrote:
> Hello again...
> I have a form in which a field represents html code written by the user.
> I have observed the text value that gets inserted in the DB is escaped.
Well, One more time I have lost inside code and couldn't detect where
the string is escaped :-(
But, I have detected the function that makes the final espace:
WEB_INF/lib/horizon/util/StringUtils::escapeString
As I don't know is this behabiour is configurable, I have recurred to a
home-made remedy :-)
unescaping the final string returned by the ActionForm setter method.
If it were of interest to somebody, here is the function that makes it.
function unescapeString($string, $charsToUnescape = array('\''),
$escapeChar = '\\')
{
foreach ($charsToUnescape as $charToUnescape)
{
$chr_unescaped = str_replace($escapeChar, '', $charToUnescape);
$string = str_replace($escapeChar . $chr_unescaped, $chr_unescaped,
$string);
}
return $string;
}
Cheers
|
|
From: Juan C. R. A. <jc...@um...> - 2006-12-12 10:37:12
|
Hello again... I have a form in which a field represents html code written by the user. I have observed the text value that gets inserted in the DB is escaped. By If the user writes: "Hello" http://www.myhost.com/path Inside FormAction I note the value that get passed to the parameter in the setter method is escaped as: \"Hello\" http:\/\/www.myhost.com\/path If the user edits again the form and saves again, the text saved in DB is: \\\"Hello\\\" http:\\\/\\\/www.myhost.com\\\/path How can I disable this behabiour in this concrete case? Does anybody has any idea? Thanks ;-) |
|
From: Earnie B. <ea...@us...> - 2006-12-01 13:21:30
|
Quoting Juan Carlos Rey Anaya <jc...@um...>: > Earnie Boyd wrote: >> I'm not sure what the correct fix would be. I'm thinking the issue is >> the ContentMapStack::pop($this->pageContext) command in the doEndTag of >> the TemplateInsertTag.php file. That doEndTag also returns a >> Tag::EVAL_PAGE and maybe should return Tag::EVAL_BODY_AGAIN instead? > > I'm been reading TagSupport.php, TemplateGetTag.php, ContentMapStack > and NestedBeanStack. > I see nothing 'suspicious'. > Read my statement again; I suggested the problem was in TemplateInsertTag.php. > I'm been revising Java definition of TagSupport and I have not seen > nothing about doAfterBody() event. > I changed return value of TemplateGetTag::doStartTag() to > EVAL_BODY_AGAIN and happens the same. > I changed return value of TemplateGetTag::doStartTag() to: > EVAL_BODY_AGAIN when direct is not set and SKIP_BODY when direct is > not set and nothing new. > I have redefined TemplateGetTag::doAfterBody() to EVAL_BODY_AGAIN and > nothing new happens. > > Uhmmm I suppose the issue is in pageContext->doInclude()... I haven't > had time to look for it... > :-( > The issue is caused by the insert within the get. The insert is properly parsed but the insert code doesn't allow for the nesting scenario you have given. Earnie Boyd -- Please post responsibly: * Use text posts instead of html; many list members just trash mail with html. * Do not use multipart mime to send both text and html versions. * Do not top post replies; post inline with the parts you are responding to. * Trim the post replies; remove irrelevant information from the quoted article. * Original posters: ** Provide small complete examples of the problem. ** Provide the full command that produced errors. ** Provide the versions of the software used. -- ****************************************************************************** * The user of this server has agreed to allow the use of a trailer in the * * mail that he sends for advertising purposes. This advertisment is added * * by the server and is not in the control of the user of our services. * ****************************************************************************** Save on your shoes, socks and other needs: http://give-me-an-offer.com/store/shoes Save on your baby gift needs: http://give-me-an-offer.com/offers/products/baby |
|
From: Juan C. R. A. <jc...@um...> - 2006-12-01 09:18:40
|
Earnie Boyd wrote: > I'm not sure what the correct fix would be. I'm thinking the issue is > the ContentMapStack::pop($this->pageContext) command in the doEndTag of > the TemplateInsertTag.php file. That doEndTag also returns a > Tag::EVAL_PAGE and maybe should return Tag::EVAL_BODY_AGAIN instead? I'm been reading TagSupport.php, TemplateGetTag.php, ContentMapStack and NestedBeanStack. I see nothing 'suspicious'. I'm been revising Java definition of TagSupport and I have not seen nothing about doAfterBody() event. I changed return value of TemplateGetTag::doStartTag() to EVAL_BODY_AGAIN and happens the same. I changed return value of TemplateGetTag::doStartTag() to: EVAL_BODY_AGAIN when direct is not set and SKIP_BODY when direct is not set and nothing new. I have redefined TemplateGetTag::doAfterBody() to EVAL_BODY_AGAIN and nothing new happens. Uhmmm I suppose the issue is in pageContext->doInclude()... I haven't had time to look for it... :-( Thanks |
|
From: Earnie B. <ea...@us...> - 2006-11-30 15:22:25
|
Quoting Juan Carlos Rey Anaya <jc...@um...>: > > horizon.lang.RootException: Fatal error: Call to a member function > get() on a non-object in > /var/www/html/s/WEB-INF/lib/studs/taglib/template/TemplateGetTag.php > on line 64 > I'm not sure what the correct fix would be. I'm thinking the issue is the ContentMapStack::pop($this->pageContext) command in the doEndTag of the TemplateInsertTag.php file. That doEndTag also returns a Tag::EVAL_PAGE and maybe should return Tag::EVAL_BODY_AGAIN instead? Earnie Boyd -- Please post responsibly: * Use text posts instead of html; many list members just trash mail with html. * Do not use multipart mime to send both text and html versions. * Do not top post replies; post inline with the parts you are responding to. * Trim the post replies; remove irrelevant information from the quoted article. * Original posters: ** Provide small complete examples of the problem. ** Provide the full command that produced errors. ** Provide the versions of the software used. -- ****************************************************************************** * The user of this server has agreed to allow the use of a trailer in the * * mail that he sends for advertising purposes. This advertisment is added * * by the server and is not in the control of the user of our services. * ****************************************************************************** Save on your shoes, socks and other needs: http://give-me-an-offer.com/store/shoes Save on your baby gift needs: http://give-me-an-offer.com/offers/products/baby |