Use of h:inputHidden tag
I'm new to JSF and I have a product which using Struts frame work and I need to move it to JSF. I'm struggling to find out how to set a value to a property of a bean from the JSP page without exposing the value to the user.
In the Struts I set the value fro the action property as follows:
<td width = "1"><html:hidden property="action" name="MyBean" value = "add"/></td>
I'm not sure how I can do the samething in JSF since JSF "<h:inputHidden" tag does not have "property" element.
<h:inputHidden id="action" value="add"/>
Below is the definition of the bean that I'm using.
Please help.
John
public class MyBean {
// Some data captured from the form
private String action;
pulbic String process() {
String outcome = null;
if ("add".equals(action) {
// outcome = add the data
} else if ("update".equals(action) {
// outcome = update existing data
} else else if ("delete".equals(action) {
// outcome = delete existing data
} else {
// unsupprted action
return outcome;
}
That effect can sometimes occur if a post has been edited by a host. Can you tell if any changes been made to the original post since you replied to it, Robert?
Similar Messages
-
Getting img tags to work in sub page using jstl core import tag
Am trying to bring disparate system page reports together under one web app. This means using the jstl core import tag (I dont want to redirect as I want to hide the urls, this web app provides better security than those it calls).
Use of the import tag works to a degree but any resources (ie. img tags) don't load.
Have created a much simplified example that demonstrates..
So heres the jsp...
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<h3>Delivery Performance Report</h3>
<c:url value="http://localhost/mycontext/subpage.html" var="myUrl"/>
<c:import url="${myUrl}" />and a simple sub page (note plain html, no jsp, this mimics my project as the other systems are hidden source, non jsp)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>sub page</TITLE>
</HEAD>
<BODY>
This is the sub page<br>
<img src="images/banner_image.jpg" />
</BODY>
</HTML>While I dont get any errors what I do get is ..
Delivery Performance Report
This is the sub page
...but image fails to load.
If I redirect instead of import it works, but as I said I need to hide the url from the user as security is an issue.
Any help appreciated, really pulling my hair out with this final stage of something that will make a real difference to us!
regards,
G.Thanks for the answer but Im afraid thicko here doesnt get it.
The img src is relative to the sub page, and I have tried it with an absolute address (ie. http://localhost/.....) with the same result.
If I call the sub page direct (get with browser) the image tag works. Its just if the sub page is imported with the jstl core import tag.
I've not tried a base tag. The real project always returns pages containing absolute urls... http://ourReportServer/reports?....plenty of params so dont belive relevant, please correct me if Im wrong here though.
thanks, G. -
Error: Illegal use of when -style tag without choose as its direct paren
Hi,
I'm using the Code:
<c:choose>
<c:when test="${empty param.usernaseme}" >
<B>Hello <c:out value="${param.usernaseme}" /></B>
</c:when>
<c:otherwise>
unknown user name.
</c:otherwise>
</c:choose>
and keep geting the Error:
Illegal use of <when>-style tag without <choose> as its direct parent
As far as know
the code is OK.
Declare Is OK (Other thigs using <c:out /> working)
thanks for your halp
ShimonHi,
I'm using the Code:
<c:choose>
<c:when test="${empty param.usernaseme}" >
<B>Hello <c:out value="${param.usernaseme}" /></B>
</c:when>
<c:otherwise>
unknown user name.
</c:otherwise>
</c:choose>
and keep geting the Error:
Illegal use of <when>-style tag without <choose> as its direct parent
As far as know
the code is OK.
Declare Is OK (Other thigs using <c:out /> working)
thanks for your halp
Shimon -
Can I turn off CSS in DW CS4 and use good ole HTML tags?
Can I turn off CSS in DW4 and use good ole HTML tags?
I can in DW CS3 but can't see how to in CS4.
Thanks.Having just been though a similar issue as described in another thread, I thought you might find this useful:
http://forums.adobe.com/thread/522805?tstart=0 -
Can I use c:out JSTL tag with int values?
I am attempting to c:out an int variable in my JSP using a JSTL core tag. First is it possible to do c:out an int? Second, if it is...can anyone see anything wrong with my code?
This is the error log I am getting:
<Oct 7, 2008 10:20:29 AM MDT> <Error> <HTTP> <BEA-101017> <[ServletContext(id=20
462449,name=rconnect,context-path=/rconnect)] Root cause of ServletException.
javax.servlet.jsp.JspException: ServletException in '/WEB-INF/pages/signup/summa
ry.jsp': An error occurred while evaluating custom action attribute "value" with
value "${orderForm.numOtaModulesSelected}": Unable to find a value for "numOtaM
odulesSelected" in object of class "com.echostar.rconnect.struts.formbeans.Order
FormBean" using operator "." (null)
This is the code:
<c:out value="${orderForm.numOtaModulesSelected}" />where numOtaModulesSelected is defined as a private member variable of the OrderFormBean
I have included the taglib.
Thanks to anyone who can helpYour OrderFormBean class needs to implement a getNumOtaModulesSelected method for that to work. The expression language won't let you get at fields, you need to access it via JavaBeans properties.
-
I have a problem with using expressions in jsf tags! I know this
topic was discussed before but it doesn`t work.
I want to use the following jsf-code:
<h:panel_data id="tab" var="vari" modelReference="Bean.varis">
<h:output_text id="Id" modelReference="vari.id"/>
<h:command_hyperlink id="hyper" href="next.jsp" label="Detail">
<f:parameter id="Param1" name="id" value="vari.id"/>
</h:command_hyperlink>
</h:panel_data>
The value of the parameter should have the value of vari.id!! Why doesn`t it work?? I also tried to use value="${vari.id}" and value=<%= vari.id %>.
I have also changed the jsf_core.tld from
<rtexprvalue>false</rtexprvalue>
to
<rtexprvalue>true</rtexprvalue>
Does anybody know what to do? Where should the .tld-files be localized when i deploy the webapplication??On May 19th, 2003 HydraD == "HD" wrote:
HD> I have a problem with using expressions in jsf tags! I
HD> know this
HD> topic was discussed before but it doesn`t work.
HD>
HD> I want to use the following jsf-code:
HD>
HD> <h:panel_data id="tab" var="vari" modelReference="Bean.varis">
HD> <h:output_text id="Id" modelReference="vari.id"/>
HD> ...
HD> <h:command_hyperlink id="hyper" href="next.jsp" label="Detail">
HD> <f:parameter id="Param1" name="id" value="vari.id"/>
HD> </h:command_hyperlink>
HD> </h:panel_data>
HD>
HD> The value of the parameter should have the value of
HD> vari.id!! Why doesn`t it work?? I also tried to use
HD> value="${vari.id}" and value=<%= vari.id %>.
HD>
HD> I have also changed the jsf_core.tld from
HD> <rtexprvalue>false</rtexprvalue>
HD> to
HD> <rtexprvalue>true</rtexprvalue>
HD>
HD> Does anybody know what to do? Where should the
HD> .tld-files be localized when i deploy the
HD> webapplication??
If you want your parameter's value to be pulled from the model, you must
use modelReference instead of value. Try that and see if it works.
Ed -
Standard J2EE MVC training using Struts with Standard Tags (JSTL)
-We have done more Struts training than anyone. This class adds Standard Tag Libs (JSTL) with MVC and a portal discussion.
Full Syllabus is at :
http://www.basebeans.com/syllabus.jsp
NYC on 8/2.
This is the last week to sign up :
http://www.basebeans.com/classReservation.jsp
More dates(tentative):
8/9 - Chicago downtown Marriott
8/16 - Atlanta downtown Marriott
8/23 - Austin downtown Marriott
To keep up on upcoming MVC training sign up at:
http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers
Hope to see you,
Thanks,
Vic
Ps. 1: Set your newsreader such as Outlook Express or Netscape to news.basebeans.com for Open Standard news groups like JDO, Apache, SOAP, etc.
Ps 2: The sample app will be available end of next week at:
http://www.basebeans.com/downloads.jspi have same problem with
CLI130 Could not create domain, domain1
then i try these things with PATH stuff but it haven't worked for me...
then i tried to search windows registry for string domain1 and nothing found...
then i searched my profile directory (on windowsxp c:\Documents and Settings\user on linux /home/user) for files that containd string domain1 and i found some .adadmin* files (as i remember there were 3 files) then i deleted them, try to install sun app server and it works for me... there are still some warnings but at least installation finishes and files were not deleted...
i hope this help...
for me it does -
Ability to use Adobe Photoshop Album tags in CS3 Bridge
I currently have 15,250 photos and 155 tags entered in Adobe Photoshop album. I would like the ability to convert, import or somehow use these tags in CS3 Bridge without reentering everything. PLEASE!
I request the answer to the same question.
-
Using smart card/nfc tag for authentication on Windows 8 devices NOT in a domain
Title says it all. We have Sony RC-S380 readers and Acer Iconia W510 tablets with builtin Broadcom NFC chips. We can read tags and configure them for the usual proximity stuff (URIs, mail, etc.) but we are looking for authentication purposes, however without
using ADFS or domain security. Can anyone point us in the right direction?Hi,
By default, smart card is not available for stand alone computer and local account.
This authentication technology might be helpful to you:
EIDAuthenticate - Smart card logon on stand alone computers and local accounts
http://www.mysmartlogon.com/products/eidauthenticate.html
Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Karen Hu
TechNet Community Support -
Using Strut Logic Iterate tag in JavaScript
Has anyone tried this or experienced this problem.
I have JSP pages with JavaScript imbedded. Not my web page but an out of the box portal we bought from a vendor. The JavaScript uses the Logic Iterate Strut tag but gives an error in Nitro:
"feature is not resolved" on the lines where getLink() and getID() are called. I have put the code in other editors and it does not give me any error. Does any one have a clue to why this error occurs or is this something that NitroX can not handle?
Thanks,
Zim 8)
Some of Code:
function selectFolder(folderName,doExpandPath)
if (typeof(doExpandPath) == 'undefined')
doExpandPath = true;
var form = document.forms['TreeForm'];
// unselect old one
var cell = document.getElementById(selectedId);
if (null != cell)
cell.className = '';
// select new one
if ('/' == folderName.charAt(folderName.length-1))
folderName = folderName.substring(0,folderName.length-1);
var targetCellId = 'cellLabel./Documents'+folderName;
var isContentFolderBrowser = true;
try {
var sideBarSelected = top.frames['main'].window.sideBarSelected;
isContentFolderBrowser = '/getfolderitems.do' == sideBarSelected;
if (!isContentFolderBrowser) {
<logic:iterate id="feature" name="userinfobean" property="sideBarFeatures"
type="com.actuate.activeportal.functionality.config.Feature">
if (sideBarSelected == '<%= feature.getLink()%>' )
targetCellId = 'cellLabel./<%= feature.getID()%>';
</logic:iterate>
} catch (e) {
cell = document.getElementById(targetCellId);May I ask why have you done it?
If it is related to printing of the list then it is of no use.But it IS of use. The objects compEmployees is in scope.
It has the list we want to print out.
With logic:iterate:
<table>
<tr>
<th>Number</th>
<th>Employee</th>
</tr>
<logic:iterate name="compEmployees" property="totalEmps" id="emp">
<tr>
<td>
<bean:write name="emp" property="empNo"/>
</td>
<td>
<bean:write name="emp" property="empName"/>
</td>
</tr>
</logic:iterate>
</table>or alternatively with JSTL and c:forEach
<table>
<tr>
<th>Number</th>
<th>Employee</th>
</tr>
<c:forEach items="${compEmployees.totalEmps}" var="emp">
<tr>
<td>
<c:out value="${emp.empNo}"/>
</td>
<td>
<c:out value="${emp.empName}"/>
</td>
</tr>
</c:forEach>
</table>Cheers,
evnafets -
Using scriplets in jsp-tag attribute
I have a strange problem with a custom taglibrary that I'm trying to write.
When I use the tag in a jsp like underneath the first outputs the right value (Welcome Hans), but the output of the second time shows: Welcome <%= test %>
This is a part of the JSP:
<% String test = "Hans"; %>
<arto:hello name="Hans" />
<arto:hello name="<%= test %>" />
I realy don't know how to let the tag display the value of the string in my jsp.
Can anyone give me some advice?
Thanks,
Hans
The files are:
import java.io.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class HelloTag extends TagSupport {
private String name;
public void setName(String name) {
this.name = name;
public int doStartTag() throws JspException {
try {
pageContext.getOut().print("Welcome " +name);
} catch (IOException ioe) {
throw new JspException("Error: IOException while writing to client");
return SKIP_BODY;
public int doEndTag() throws JspException {
return SKIP_PAGE;
The JSP:
<%@ taglib uri="arto" prefix="arto" %>
<%
String test = "Hans";
%>
<arto:hello name="<%= test %>" />
<arto:hello name="Hans" />
The TLD:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname></shortname>
<uri></uri>
<info></info>
<tag>
<name>hello</name>
<tagclass>HelloTag</tagclass>
<bodycontent>empty</bodycontent>
<info>Tag with Parameter</info>
<attribute>
<name>name</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
</attribute>
</tag>
</taglib>In the tld for the name attribute, use
<rtexprvalue>true</rtexprvalue>
This specifies that the attribute value can be a run-time expression. Otherwise, the value is taken as a literal. -
Error while using pt:standard.choose tag
Hi,
I am getting error while using the ALUI 6.5 Adaptive tags. The details are given below. Can anyone help?
The code I am using is
<pt:standard.choose>
<pt:standard.when pt:test="stringToACLGroup('user=13009;').isMember($currentUser)">
<div class="ali-portlet-controlone">Adit</div>
<pt:logic.value pt:value="$currentUser"/>
<pt:logic.value pt:value="checking Tags"/>
</pt:standard.when>
</pt:standard.choose>
Also I checked for the variable $currentUser and it was displaying null so I set the variable as
<pt:logic.variable pt:key="currentUser" pt:value="13009"/>
I aslo checked by giving the group id in stringToACLGroup('group=301;') but same result.
The stack trace is ::
<!--Error displaying tag when in library standard. String index out of range: -19: com.plumtree.openfoundation.util.XPIndexOutOfBoundsException: String index out of range: -19
at com.plumtree.openfoundation.util.XPException.GetInstance(XPException.java:403)
at com.plumtree.openfoundation.util.XPException.GetInstance(XPException.java:350)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:165)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.standard.ChooseTag.DisplayTag(ChooseTag.java:110)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.logic.IfFalseTag.DisplayTag(IfFalseTag.java:75)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.logic.IfTag.DisplayTag(IfTag.java:71)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.logic.ForEachTag.DisplayTag(ForEachTag.java:162)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.bea.alui.taglib.portletpage.PortletRegionDisplayTag.DisplayTag(PortletRegionDisplayTag.java:91)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:243)
at com.plumtree.portalpages.browsing.myportal.MyPortalDP.PageDisplay(MyPortalDP.java:166)
at com.bea.alui.taglib.basepage.ContentTag.DisplayTag(ContentTag.java:71)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.bea.alui.taglib.basepage.PageBodyTag.DisplayTag(PageBodyTag.java:135)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessMainPageLayout(LayoutDisplay.java:44)
at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:240)
at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:219)
at com.plumtree.portalpages.common.uiparts.PlumtreeDP.Display(PlumtreeDP.java:151)
at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleDisplayPage(Interpreter.java:2140)
at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleRequest(Interpreter.java:657)
at com.plumtree.uiinfrastructure.interpreter.Interpreter.DoService(Interpreter.java:190)
at com.plumtree.uiinfrastructure.web.XPPage.service(XPPage.java:300)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3495)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -19
at java.lang.String.substring(String.java:1938)
at com.plumtree.taglib.standard.WhenTag.DisplayTag(WhenTag.java:72)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.standard.ChooseTag.DisplayTag(ChooseTag.java:110)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.logic.IfFalseTag.DisplayTag(IfFalseTag.java:75)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.logic.IfTag.DisplayTag(IfTag.java:71)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.plumtree.taglib.logic.ForEachTag.DisplayTag(ForEachTag.java:162)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.bea.alui.taglib.portletpage.PortletRegionDisplayTag.DisplayTag(PortletRegionDisplayTag.java:91)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:243)
at com.plumtree.portalpages.browsing.myportal.MyPortalDP.PageDisplay(MyPortalDP.java:166)
at com.bea.alui.taglib.basepage.ContentTag.DisplayTag(ContentTag.java:71)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
at com.bea.alui.taglib.basepage.PageBodyTag.DisplayTag(PageBodyTag.java:135)
at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessMainPageLayout(LayoutDisplay.java:44)
at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:240)
at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:219)
at com.plumtree.portalpages.common.uiparts.PlumtreeDP.Display(PlumtreeDP.java:151)
at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleDisplayPage(Interpreter.java:2140)
at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleRequest(Interpreter.java:657)
at com.plumtree.uiinfrastructure.interpreter.Interpreter.DoService(Interpreter.java:190)
at com.plumtree.uiinfrastructure.web.XPPage.service(XPPage.java:300)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3495)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Edited by: user590322 on Oct 29, 2009 12:22 AMProper usage:
<pt:standard.choose>
<pt:when pt:test="stringToACLGroup('user=1;').isMember($currentuser)">
... secret administrator content ...
</pt:when>
</pt:standard.choose>
Note that it's pt:when and not pt:standard.when. Also, Joel is right -- I think $currentuser is case sensitive.
Chris Bucchere
http://bucchere.com
http://twitter.com/bucchere -
Dreamweaver error when using Business Catalyst module tags in template
Hi all,
this is a recent and very distruptive error I have come accross in Dreamweaver CC.
When editing a document attached to a Business Catalyst template in Dreamweaver,
I was getting an error message (attached) saying:
"You have made changes to the code that is not marked as editable. If you retain those changes, they will be lost the next time you apply a template update to this file. Do you want to retain the changes until then?"
This happened every time I added a new html tag to the page, p div etc... which made DW unusable for editing files.
Having not got any useful help from BC support, they told me to contact Dreamweaver support!
In the end, I found through troubleshooting that it was the content holder module tags from Business Catalyst that were causing the problem,
I had recently converted my Header, Footer, Scripts etc to Content Holders in the site admin,
and when I removed these tags from my template and replaced them with the original html the problem disappeared.
The problem was happening on both my macs so the problem looked real to me,
but from searching online I couldn’t find people with similar issues, which made me think I must be doing something wrong.
As an aside,
I find the workflow between Dreamweaver CC and Business Catalyst, particularly in relation to DW templates very confusing.
I couldn’t find any up-to-date best practice guides for using DW in the Business Catalyst workflow that discusses the real issues I get every day:
- Best practice DW template editable region for {tag_pagecontent}
- BC pages updated from DW lose their page titles {tag_pagetitle} in BC admin (always causes problems for me)
If anyone is having these issues and found a way to get around them I’d be very interested,
I hope that this post will help some people who run into the same problem.
thanks, Kieran Mahon.I found what may be at least a temporary solution to this problem. The error seems to something to do with the template file not having been updated, so whenever DW reads the file it looks like the template code has been changed (which of course it hasn't). It may be to do with the way BC treats the template code on the server side, as it seemed to start happening after I had downloaded some files from the server.
I opened the affected page and clicked Modify->Templates->Update Current Page and so far no error messages. Just one gotcha though. If you have any BC tags or Liquid code in your templates, DW converts it all to some kind of gobbledegook, so before you update the Template, copy all of your editable code and then paste it back in once the update has been done. -
How do I configure portal desktop to use my own custom tag in template?
I seem to have tried everything. I want to use a custom tag from a jar file on a template JSP. I keep getting error saying tag library not found. I have the tld in the meta-inf of the jar. I tried putting the jar in the desktop classes, the deployed WEB-INF lib directory for portal, in the web-src directory for the portal. I tried configuring the uri in the web.xml for the portal webapp. None of these have worked. Does someone know how to do this? If someone could help out that would be great. I tries the jar from a web application and it worked fine. I just need to get this working with Portal Server.
Thanks,
FrankThank you for the reply Alex. We are using the Dynamics AX 2012 R3 ISO for our installation. In the software requirement documentation for Dynamics AX it says that is able to run on Windows Server 2012 R2. I believe the prerequisites for Dynamics AX and
Dynamics CRM are different. We received a response from another forum that you can change the .NET version that Sharepoint 2010 uses through IIS in the application pool, but even after setting it to .NET v2.0, we still receive the error in the Dynamics log
that says it is not compatible with .NET v4.0. So I suppose the question is, where does the Dynamics AX 2012 R3 prerequisite checker look to see which version of .NET Sharepoint is using?
Thanks again for the reply! -
Using "comment" as xml tag in XSLT
Comment is apparently reserved word in XSLT.
Is there a way to put in a tag set in the destination xml document using XSL, something like this:
<comment><FreeFormText>This is a test</FreeFormText></comment>.
When I try to do this
all I get in the destination doc is:
<comment></comment>
Any help wowuld be appreciated.
JayantWow!!!
The output="html" actually worked on XML Spy!
Removing the XSLT file initial tag didn't work.
I had already resolved this problem using the replace-string method that I found here: http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/65426
But your method is way more elegant and efficient. :o)
I'll test the html method on XI, but I'm almost sure it'll work too.
Maybe you are looking for
-
CUCM 8.6.2 - LowAvailableVirtualMemory
Hi Guys, My Customer have the Cluster with 6 CUCM server and the Publisher is presenting LowAvailableVirtualMemory. I read the post below, but, Not stay clear what is the solution or if that another solution. Any have Idea about this? admin:show stat
-
I have been having trouble getting into my podcasts after restoring my itunes library to an earlier library, every time I select podcast i am kicked off itunes with an error send/dont send pop up however I can acess the podcasts when sinking my ipod
-
External Hard Drive Full, how do I delete back ups from years ago?
I have a LaCie 500GB external hard drive. I bought it to store my iTunes library on it, then when Time Machine came out a few years ago, I began backing up using Time Machine onto the same drive. Now the drive is about full, but it is mostly full fro
-
Unable to open image in camera raw in CS3
I have CS3 and I'm unable to open images in camera raw. I updated to 4.6 but it hasn't helped, and I've tried suggestions such as "open as" and then "formats" and choosing "camera raw"...still doesn't work. Adobe is not able to help me over the pho
-
Revert to default 3.0 type versions
I'm having some type version conflict issues and hoping someone can let me know what the best way is to revert everything in the TestStand type palette back to default for TestStand 3.0. (The version of each type that I'm supposed to have appears to