Tree view custom tag
Hi all,
Is there a custom tag available for rendering packages off all classes loaded in a classloaders into a tree?
I already have an iterator containing the wanted packages.
Thanks in advance for your help,
Kind regards
I'm trying out the JSP tree tag library from Guy Davis at http://www.guydavis.ca/projects/oss/tags/
Does anyone know a performant algoritm to loop over a collection like the following :
x.y.Class1
x.y.z.Class2
x.y.z.Class3
x.Class4
Class5
All classes have to recieve a level to add in the tree.
Any idea's?
Kind regards,
Similar Messages
-
Build XML for Custom Nested Accordian (like Tree View Structure) for SharePoint List Data
Expected output in Xml:
<?xml version="1.0" encoding="utf-8" ?>
- <TopRoot>
- <Root id="1" Name="Department">
- <Type id="2" Name="IT">
- <SubType id="3" Name="Technology">
<SubSubType id="4" Name="Sharepoint" />
<SubSubType id="5" Name="ASP.NET" />
<SubSubType id="6" Name="HTML 5" />
</SubType>
</Type>
</Root>
</TopRoot>
List Details:
list details for storing category / sub category data and code to build tree structure for the same.
1.Create Custom List named “CategoryDetails”:
2.Create Column “Category Name” of type single line of text. Make it as required field and check Yes for Enforce Unique values.
3.Create column “Parent Category” of type lookup. under Additional Column Settings.
Get information dropdown, select “CategoryDetails”.
4.Choice column ["SRTypeName"] 1.Root,2.SRTYPE,3.SubSRTYPE, 4.SUBSUBSRTYPE
In this column dropdown, select “Category Name”:
Referance:
http://www.codeproject.com/Tips/627580/Build-Tree-View-Structure-for-SharePoint-List-Data -fine but don't want tree view just generate xml string
i just follwed above link it work perferfectly fine for building tree view but i don't want server control.
Expected Result:
My ultimate goal is to generate xml string like above format without building tree view.
I want to generate xml using web service and using xml i could convert into nested Tree View Accordian in html.
I developed some code but its not working to generate xml /string.
My modified Code:
public const string DYNAMIC_CAML_QUERY =
"<Where><IsNull><FieldRef Name='{0}' /></IsNull></Where>";
public const string DYNAMIC_CAML_QUERY_GET_CHILD_NODE =
"<Where><Eq><FieldRef Name='{0}' /><Value Type='LookupMulti'>{1}</Value></Eq></Where>";
protected void Page_Load(object sender, EventArgs e)
if (!Page.IsPostBack)
string TreeViewStr= BuildTree();
Literal1.Text = TreeViewStr;
StringBuilder sbRoot= new StringBuilder();
protected string BuildTree()
SPList TasksList;
SPQuery objSPQuery;
StringBuilder Query = new StringBuilder();
SPListItemCollection objItems;
string DisplayColumn = string.Empty;
string Title = string.Empty;
string[] valueArray = null;
try
using (SPSite site = new SPSite(SPContext.Current.Web.Url))
using (SPWeb web = site.OpenWeb())
TasksList = SPContext.Current.Web.Lists["Service"];
if (TasksList != null)
objSPQuery = new SPQuery();
Query.Append(String.Format(DYNAMIC_CAML_QUERY, "Parent_x0020_Service_x0020_Id"));
objSPQuery.Query = Query.ToString();
objItems = TasksList.GetItems(objSPQuery);
if (objItems != null && objItems.Count > 0)
foreach (SPListItem objItem in objItems)
DisplayColumn = Convert.ToString(objItem["Title"]);
Title = Convert.ToString(objItem["Title"]);
int rootId=objItem["ID"].ToString();
sbRoot.Append("<Root id="+rootId+"
Name="+Title+">");
string SRAndSUBSRTpe = CreateTree(Title, valueArray,
null, DisplayColumn, objItem["ID"].ToString());
sbRoot.Append(SRAndSUBSRTpe);
SRType.Clear();//make SRType Empty
strhtml.Clear();
SRType.Append("</Root>");
catch (Exception ex)
throw ex;
return SRType.ToString();
StringBuilder strhtml = new StringBuilder();
private string CreateTree(string RootNode, string[] valueArray,
List<SPListItem> objNodeCollection, string DisplayValue, string KeyValue)
try
strhtml.Appends(GetSRType(KeyValue, valueArray, objNodeCollection);
catch (Exception ex)
throw ex;
return strhtml;
StringBuilder SRType = new StringBuilder();
private string GetSRType(string RootNode,
string[] valueArray, List<SPListItem> objListItemColn)
SPQuery objSPQuery;
SPListItemCollection objItems = null;
List<SPListItem> objNodeListItems = new List<SPListItem>();
objSPQuery = new SPQuery();
string objNodeTitle = string.Empty;
string objLookupColumn = string.Empty;
StringBuilder Query = new StringBuilder();
SPList objTaskList;
SPField spField;
string objKeyColumn;
string SrTypeCategory;
try
objTaskList = SPContext.Current.Web.Lists["Service"];
objLookupColumn = "Parent_x0020_Service_x0020_Id";//objTreeViewControlField.ParentLookup;
Query.Append(String.Format
(DYNAMIC_CAML_QUERY_GET_CHILD_NODE, objLookupColumn, RootNode));
objSPQuery.Query = Query.ToString();
objItems = objTaskList.GetItems(objSPQuery);
foreach (SPListItem objItem in objItems)
objNodeListItems.Add(objItem);
if (objNodeListItems != null && objNodeListItems.Count > 0)
foreach (SPListItem objItem in objNodeListItems)
RootNode = Convert.ToString(objItem["Title"]);
objKeyColumn = Convert.ToString(objItem["ID"]);
objNodeTitle = Convert.ToString(objItem["Title"]);
SrTypeCategory= Convert.ToString(objItem["SRTypeName"]);
if(SrTypeCategory =="SRtYpe")
SRType.Append("<Type id="+objKeyColumn+" Name="+RootNode+ ">");
if (!String.IsNullOrEmpty(objNodeTitle))
SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
if(SrTypeCategory =="SRSubTYpe")
SRType.Append("<SRSubType id="+objKeyColumn+" Name="+RootNode+
">");
if (!String.IsNullOrEmpty(objNodeTitle))
SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
if(SrTypeCategory =="SubSubTYpe")
SRType.Append("<SubSubType id="+objKeyColumn+" Name="+RootNode +"
></SubSubType");
SRType.Append("</SubType>");
SRType.Append("</Type>");
catch (Exception ex)
throw ex;
return SRType.ToString();
// Call method again (recursion) to get the child itemsHi,
According to your post, my understanding is that you want to custom action for context menu in "Site Content and Structure" in SharePoint 2010.
In "SiteManager.aspx", SharePoint use MenuItemTemplate class which represent a control that creates an item in a drop-down menu.
For example, to create or delete the ECB menu for a list item in
"Site Content and Structure", we can follow the steps below:
To add the “My Like” menu, we can add the code below:
<SharePoint:MenuItemTemplate
UseShortId=false
id="OLListItemLike"
runat="server"
Text="My Like"
ImageUrl="/_layouts/images/DelItem.gif"
ClientOnClickNavigateUrl="https://www.google.com.hk/"
/>
To remove the “Delete” menu, we can comment the code below:
<SharePoint:MenuItemTemplate
UseShortId=false
id="OLListItemDelete"
runat="server"
Text="<%$Resources:cms,SmtDelete%>"
ImageUrl="/_layouts/images/DelItem.gif"
ClientOnClickScript="%SmtObjectDeleteScript%"
/>
The result is as below:
More information:
MenuItemTemplate Class (Microsoft.SharePoint.WebControls)
MenuItemTemplate.ClientOnClickScript property (Microsoft.SharePoint.WebControls)
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Design view for jsp custom tags.
when we drag-and-drop custom tag control in the source of jsp page, when we switch to the design view of jsp we should be able to view controls as desired.
Observation: 1) Eclipse 3.2 doesn't have design view for jsp pages.
2) which software uses the design view. we need to extend eclipse core framework and we do not find any technical approach document to proceed further on this.
3) RAD 6.0 we can see a JSP in design view.
I'm searching for any technical approach document to create plugin that can intercept the custom tags and provide a design view.
Will any one suggest the plugin for that.Jeff,
I have checked with engineering and found that JSP Design View support on
Linux is a planned feature for the next release. I don't think we will have
this feature as part of a Service Pack for 8.1
Regards,
Raj Alagumalai
WebLogic Workshop Support
"Jeff Cassanvoa" <[email protected]> wrote in message
news:3f4df04e$[email protected]..
>
Raj,
Thanks for the information!! Any timeframe when it might be supportedon Linux
Thanks,
Jeff
"Raj Alagumalai" <[email protected]> wrote:
Jess,
Unfortunately, the JSP design view is currently not supported on Linux.
Workshop does allow to do remote development where the IDE is running
on a
Windows machine and connects to a server running on Linux/Solaris.
Regards,
Raj Alagumalai
WebLogic Workshop Support
"Jeff Cassanova" <[email protected]> wrote in message
news:[email protected]..
Does anybody else who is running the Linux version of Workshop 8.1have
troubling
getting the Design View of JSP files to come up. All I see is thesource,
with
no tabs at the bottom to switch to/from the Design View. When I bootover
to
Windows and run 8.1 Workshop, I see both tabs and I am able to useboth
views.
Is it something I have set in Preferences somewhere that disablesthe
Design
View ???
Thanks,
Jeff -
How to blick tree view few specific nodes
here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
Answered by:
Avatar of Tamer Oz
20,185
Points
Top 0.5
Tamer Oz
Partner Joined Sep 2009
2
8
17
Tamer Oz's threads
Show activity
Treeview control - How to make a node blink?
Visual Studio Languages
.NET Framework
>
Visual C#
Question
Alert me
Question
Vote as helpful
0
Vote
Hi,
Is there a "elegant" way to make blink a treeview node?
I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
Friday, November 06, 2009 6:19 PM
Reply
|
Quote
|
Report as abuse
Avatar of Kikeman
Kikeman
R. BOSCH
105 Points
All replies
Question
Vote as helpful
0
Vote
Hi,
You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
public class BlinkingTreeView : TreeView
private Timer t = new Timer();
private List<TreeNode> blinkingNodes = new List<TreeNode>();
public BlinkingTreeView()
t.Interval = 1000;
t.Tick += new EventHandler(t_Tick);
bool isNodeBlinked = false;
void t_Tick(object sender, EventArgs e)
foreach (TreeNode tn in blinkingNodes)
if (isNodeBlinked)
//update Icon
tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
isNodeBlinked = false;
else
//update Icon
tn.Text = tn.Text + "*";//to test
isNodeBlinked = true;
public void AddBlinkNode(TreeNode n)
blinkingNodes.Add(n);
public void RemoveBlinkNode(TreeNode n)
blinkingNodes.Remove(n);
public void ClearBlinkNodes()
blinkingNodes.Clear();
public List<TreeNode> BlinkingNodes
get { return blinkingNodes; }
public int BlinkInterval
get { return t.Interval; }
set { t.Interval = value; }
public void StartBlinking()
isNodeBlinked = false;
t.Enabled = true;
public void StopBlinking()
t.Enabled = false;
just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanksbetter to come with code. first populate tree view with some dummy node this way
Root
Child1
Child1-sub1
Child1-sub2
Child2
Child2-sub1
Child2-sub2
now blink Child1-sub2 & Child2-sub1. please come with code. thanks -
How to populate list in tree view dynamically
Hi,
I am new to Indesign Plugin creation.
I want to create list in tree view dynamically.
I tried wlistboxcomposite sdk sample in indesign cs4.
I have some doubts in this.
1. Can i write my own method in WLBCmpTreeViewAdapter class because it's implements ListTreeViewAdapter
If it's possible how can i call this method.
2. In this example they populating static string in constructor like this
WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss){
K2Vector<PMString> lists;
for (int32 i = 0; i< 12; i++){PMString name(kWLBCmpItemBaseKey);name.AppendNumber(i+1);name.Translate();lists.push_back(name);}
InterfacePtr<IStringListData> iListData(this, IID_ISTRINGLISTDATA);}
and this list is populating on loading time but my requirement is i have one button "get list" after clicking this button i have to populate the list, how can
i achieve this.
Pls do needful.
Thanks
ArunThe TreeViewAdaptor is responsible for mapping your custom data to the tree view itself. I almost always start by making it return some fixed number of objects with names "item 1" etc. That way you get the tree view working first.
Then, after you get it laid out and displaying properly, you can worry about using real data. At that point, you have your adaptor return the actual number of items in your list and each individual item. Then you can populate your list when you push your button and then invalidate the IControlView of the tree view widget to cause it to redraw. At that point your adaptor will get called and your data should appear.
Jon
"Expert for hire" -
Display data as a tree view on IE5
I want to display data which is parsered by .xsql and use .xsl transfrom to HTML as a tree view(using javascript).
Is there any sample or suggestion will eb grateful.
Regards,
KellyThanks for the backup :-)
A new version of the Tree Tag will be out some time this summer, by the way. It features:
1) The possibility to attach an object to a tree node (getObject(), setObject(...)).
This means you can display more information in the tree than just what is available
on the tree node itself. The information in this attached object can also be displayed.
This attached object can for instance be rendered by Struts's <bean:write ...> tags
2) Client side event listeners.
A new tag will be added that will only evaluate it's body when a node is expanded, collapsed,
selected or unselected. This way you can have a small bit of javascript sent along with the tree html to the browser, when a node is expanded/collapsed or selected/unselected, that for instance reloads the page in another frame in the browser
3) The <tree:tree...> tag will be able to detect selected/unselected nodes by itself, if the select request is sent to the page containing the <tree:tree tag>. In the current version only expands/collapses are detected automatically. This new feature is implemented to support the client side event listeners.
4) Someone asked for no-arg contructors of the TreeNode for use with reflection. They will be added to.
A larger, more detailed manual will probably also be available for a small fee, in addition to the free basic user guide and the free web app. example.
Look out for it ;-)
Jakob Jenkov
http://www.jenkov.com -
SharePoint 2013---How to convert current left Navigation into tree view
Hi All,
I want to convert current left navigation into tree view in SharePoint 2013. When we click on Modify Navigation and set headers and links; I need that should be convert into tree view. All headers should be expandable to thier links.
I just want tree view on navigation headers and links. not for all site and subsites which we can enabled from site settings --> Modify All Site settings --> Tree view
Please help me Master Page editing on Navigation Generation.. Thanks in advance!
Regards,
AnnaHi Anna,
If you want to replace the Quick Launch part with the custom treeview web part in master page, you can comment out or remove the quick launch code block "<!--SPM:<SharePoint:SPNavigationManager id="QuickLaunchNavigationManager.....>....<>-->",
then insert the custom web part snippet code in proper location in seattle master page, then all pages inheriting the seattle master page will have this web part.
Note, please back up the master page before customizing the original master page for recovery.
http://msdn.microsoft.com/en-us/library/office/jj862341(v=office.15).aspx
http://www.sharepointpals.com/post/Add-snippets-in-Page-layout-using-design-manager
Thanks,
Daniel Yang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Daniel Yang
TechNet Community Support -
How to create a tree view to show hierarchy
Hi all,
i am new in plugin development.i need help in creating a tree view to show hierarchy.i gone through sdk\paneltreeview example.but not getting clear idea how to create child node.and how to display it..i want to create a simple tree view which displays my custom data as root\child in hierarchy as i want.
thanks..I did this in CS3 a few weeks ago...
1. subclass NodeIDClass to create your node id class.
2. subclass ITreeViewHierarchyAdapter to create the adapter
3. subclass CTreeViewWidgetMgr
4. in your .fr file, define two "Class"'es based on kTreeViewWidgetBoss (with Interface IID_ITREEVIEWWIDGETMGR and IID_ITREEVIEWHIERARCHYADAPTER) and kTreeNodeWidgetBoss.
Btw, I put down "persistentlistui" in my note so I guess I looked at that sample instead of the paneltreeeview.
Good luck. -
Please Help(How to get RadioButtons in tree View)
Hi.
Sub/Requirement: How to implement RadioButtons in tree view with/without using xml file.
I have a requirement like this i want to display RadioButton in tree view.
I implemented tree same as which is given in sampleApplications.
In this sampleApplications they implemted tree by using xml file.
I also implemented tree by Generating xml file. In this xml file i get the values from the database. I am using <netui:tree > tag.
Is it possible to implement tree without using xml file. I need to generate tree Dynamically.
Please any one help me to come out with this solution.The issue here is while you are retrieving all the details, you are consistently overwriting them in the request.setAttribute() call before you get to the JSP to display them.
Do you actually have a class/object called Student?
That object should have attributes for classes, subjects, teachers (all of which are lists apparently)
public class Student{
String name;
List classes;
List subjects;
List teachers;
// appropriate getter/setter methods
}Then you load each student, and populate its individual lists.
That lets you pass the list of students, each student having its own lists for display.
Hope this helps,
evnafets -
I was curious if you knew what specifically you did to remove the runtime error.
I am also getting the runtime failure. The try/catch that another discussion thread
suggested does not catch the error since the exception is thrown prior to the
doStart and doEnd Tag methods. I know that the exception is thrown immediately
after the constructor is called for the tag and before the setParent method is
called.
Anyway, thank you in advance for any suggestions you might have.
try { // begin instantiate/release try/catch/finally block... //[ /wattage/wtgMainMenu.jsp;
Line: 36]
westerncommon_jsptag_HeaderTag_0 = (western.common.jsptag.HeaderTag)java.beans.Beans.instantiate(getClass().getClassLoader(),
"western.common.jsptag.HeaderTag"); //[ /wattage/wtgMainMenu.jsp; Line: 36]
westerncommon_jsptag_HeaderTag_0.setPageContext(pageContext); //[ /wattage/wtgMainMenu.jsp;
Line: 36]
westerncommon_jsptag_HeaderTag_0.setParent(null); //[ /wattage/wtgMainMenu.jsp;
Line: 36]
westerncommon_jsptag_HeaderTag_0.setNavMenuHREF(weblogic.utils.StringUtils.valueOf("wtgLogout.jsp"));
//[ /wattage/wtgMainMenu.jsp; Line: 36]
westerncommon_jsptag_HeaderTag_0.setNavMenu(weblogic.utils.StringUtils.valueOf("Logout"));
//[ /wattage/wtgMainMenu.jsp; Line: 36]
westerncommon_jsptag_HeaderTag_0.setTitle(weblogic.utils.StringUtils.valueOf("Main
Menu")); //[ /wattage/wtgMainMenu.jsp; Line: 36]
int int0 = westerncommon_jsptag_HeaderTag_0.doStartTag(); //[ /wattage/wtgMainMenu.jsp;
Line: 36]
if (_int_0 == BodyTag.EVAL_BODY_TAG) { //[ /wattage/wtgMainMenu.jsp; Line: 36]
throw new JspTagException("Since tag class western.common.jsptag.HeaderTag does
not implements BodyTag, it cannot return BodyTag.EVAL_BODY_TAG"); //[ /wattage/wtgMainMenu.jsp;
Line: 36]
} //[ /wattage/wtgMainMenu.jsp; Line: 36]
/*** sync AT_BEGIN TagExtra Vars here ***/ //[ /wattage/wtgMainMenu.jsp;
Line: 36]
if (_int_0 != Tag.SKIP_BODY) { // begin !SKIP_BODY... //[ /wattage/wtgMainMenu.jsp;
Line: 36]
//[ /wattage/wtgMainMenu.jsp; Line: 36]
out.print("\r\n");
//[ /wattage/wtgMainMenu.jsp; Line: 37]
} // end !SKIP_BODY //[ /wattage/wtgMainMenu.jsp; Line: 37]
if (_western_common_jsptag_HeaderTag_0.doEndTag() == Tag.SKIP_PAGE) return;
//[ /wattage/wtgMainMenu.jsp; Line: 37]
} catch (java.lang.Exception javalang_Exception_0) { // instantiate/release
try/catch/finally //[ /wattage/wtgMainMenu.jsp; Line: 37]
throw new ServletException("runtime failure in custom tag 'HeaderTag'", javalang_Exception_0);
//[ /wattage/wtgMainMenu.jsp; Line: 37]
} finally { // instantiate/release try/catch/finally block... //[ /wattage/wtgMainMenu.jsp;
Line: 37]
if (_western_common_jsptag_HeaderTag_0 != null) westerncommon_jsptag_HeaderTag_0.release();
//[ /wattage/wtgMainMenu.jsp; Line: 37]
} //[ /wattage/wtgMainMenu.jsp; Line: 37]
----------CONSOLE OUTPUT-------------
Getting Page permissions for page: wtgMainMenu.jsp user: 0
Page Permissions: Insert-1 View-1 Update-1 Delete-1
HeaderTag -- Constructing
Thu Apr 05 11:19:00 CDT 2001:<E> <ServletContext-General> exception raised on
wattage/wtgMainMenu.jsp'
javax.servlet.ServletException: runtime failure in custom tag 'HeaderTag'
at jsp_servlet.wattage.wtgmainmenu._jspService(wtgmainmenu.java:398)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:124)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:744)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:692)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:251)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:363)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
I just started getting this error after a year in production environment without any problems. Did you every find out what caused this or better yet how to prevent this?
Dan.
-
Custom Tag issue and then ApplicationID?
Hello,
is there anybody out there who can help me with the following
problem:
I installed ColdFusion 4.5 Server on my Windows XP machine
and wanted to access an already built CF application. When
accessing
the main default page, i got the following error:
"Cannot find CFML template for custom tag
CFA_APPLICATIONINITIALIZE.
ColdFusion attempted looking in the tree of installed custom
tags but
did not find a custom tag with this name. "
I copied the same Administrator settings, code and folders
from the
working production server to my local machine and it just
doesn't seem
to work. (I couldn't find any differences to the working
application)
I tried to fix it by copying the custom tag folder (located
under allaire/spectra/customtags/) to C:\CFusion\CustomTags which
somehow cleared the previous error but gave me the following new
one:
"Error Occurred While Processing Request > Error
Diagnostic Information > This application can't be located by
name. Use ApplicationID instead"
Please, i appreciate any kind of comment on this post (i have
been trying to fix this for the past 3 days!)
Thanks,
bbintoSpectra requires 4.5.1 or 5.
Run the Spectra install to set up all the correct mappings
and the webtop. Then copy over the custom application. It's been
awhile since I've dug into the folder structure of the webtop, so I
don't have a complete list of steps required for a Spectra app
deployment. So you still have some work ahead of you.
Just make sure you backup your database before the install,
mirror it, or use a new schema for the installation and then switch
over your datasources.
I would recommend an old Spectra book you can probably find
on eBay.
http://www.forta.com/books/0789723654/ -
Weblogic 10.3.6 - Custom Tag Issue
We have created custom tag in our application. It is working fine with Tomcat and Jetty Server but on Weblogic 10.3.6 we are getting below issue:
securities.jsp:301:5: The tag handler class was not found "jsp_servlet._tags.__money_tag".
<neutrino:money placeHolderKey="label.security.faceValue" labelKey="label.security.faceValue"
^------------^
securities.jsp:301:20: This attribute is not recognized.
<neutrino:money placeHolderKey="label.security.faceValue" labelKey="label.security.faceValue"
^------------^
securities.jsp:301:62: This attribute is not recognized.
<neutrino:money placeHolderKey="label.security.faceValue" labelKey="label.security.faceValue"
^------^
securities.jsp:302:4: This attribute is not recognized.
mandatory="true" moneyBoxColSpan="4" colSpan="6" validators="amount" errorPath="faceValue"
^-------^
securities.jsp:302:21: This attribute is not recognized.
mandatory="true" moneyBoxColSpan="4" colSpan="6" validators="amount" errorPath="faceValue"
^-------------^
securities.jsp:302:41: This attribute is not recognized.
mandatory="true" moneyBoxColSpan="4" colSpan="6" validators="amount" errorPath="faceValue"
^-----^
securities.jsp:302:53: This attribute is not recognized.
mandatory="true" moneyBoxColSpan="4" colSpan="6" validators="amount" errorPath="faceValue"
^--------^
securities.jsp:302:73: This attribute is not recognized.
mandatory="true" moneyBoxColSpan="4" colSpan="6" validators="amount" errorPath="faceValue"
^-------^
securities.jsp:303:4: This attribute is not recognized.
id="faceValue" path="faceValue" tabindex="13" viewMode="${view}" maxLength="16" />
^^
securities.jsp:303:19: This attribute is not recognized.
id="faceValue" path="faceValue" tabindex="13" viewMode="${view}" maxLength="16" />
^--^
securities.jsp:303:36: This attribute is not recognized.
id="faceValue" path="faceValue" tabindex="13" viewMode="${view}" maxLength="16" />
^------^
securities.jsp:303:50: This attribute is not recognized.
id="faceValue" path="faceValue" tabindex="13" viewMode="${view}" maxLength="16" />
^------^
securities.jsp:303:69: This attribute is not recognized.
id="faceValue" path="faceValue" tabindex="13" viewMode="${view}" maxLength="16" />
^-------^
securities.jsp:308:5: The tag handler class was not found "jsp_servlet._tags.__money_tag".
<neutrino:money placeHolderKey="label.security.price" labelKey="label.security.price"
^------------^
securities.jsp:308:5: The tag handler class was not found "jsp_servlet._tags.__money_tag".
<neutrino:money placeHolderKey="label.security.price" labelKey="label.security.price"
^------------^
securities.jsp:308:20: This attribute is not recognized.
<neutrino:money placeHolderKey="label.security.price" labelKey="label.security.price"
^------------^
securities.jsp:308:58: This attribute is not recognized.
<neutrino:money placeHolderKey="label.security.price" labelKey="label.security.price"
^------^
securities.jsp:309:4: This attribute is not recognized.
mandatory="true" moneyBoxColSpan="4" colSpan="6" validators="amount" errorPath="price"
^-------^
securities.jsp:309:21: This attribute is not recognized.
mandatory="true" moneyBoxColSpan="4" colSpan="6" validators="amount" errorPath="price"
^-------------^
securities.jsp:309:41: This attribute is not recognized.
mandatory="true" moneyBoxColSpan="4" colSpan="6" validators="amount" errorPath="price"
^-----^
securities.jsp:309:53: This attribute is not recognized.
mandatory="true" moneyBoxColSpan="4" colSpan="6" validators="amount" errorPath="price"
^--------^
securities.jsp:309:73: This attribute is not recognized.
mandatory="true" moneyBoxColSpan="4" colSpan="6" validators="amount" errorPath="price"
^-------^
securities.jsp:310:4: This attribute is not recognized.
id="price" path="price" tabindex="14" viewMode="${view}" maxLength="16" />
^^
securities.jsp:310:15: This attribute is not recognized.
id="price" path="price" tabindex="14" viewMode="${view}" maxLength="16" />
^--^
securities.jsp:310:28: This attribute is not recognized.
id="price" path="price" tabindex="14" viewMode="${view}" maxLength="16" />
^------^
securities.jsp:310:42: This attribute is not recognized.
id="price" path="price" tabindex="14" viewMode="${view}" maxLength="16" />
^------^
securities.jsp:310:61: This attribute is not recognized.
id="price" path="price" tabindex="14" viewMode="${view}" maxLength="16" />
^-------^
money.tag:2:25: The encoding specified on the page cannot be different than detected encoding for the file.
<%@ tag language="java" pageEncoding="UTF-8"%>
^----------^
money.tag:2:25: The encoding specified on the page cannot be different than detected encoding for the file.
<%@ tag language="java" pageEncoding="UTF-8"%>
^----------^
>Hi.
I had similar problems with appc.
Try to remove the line "<%@ tag language="java" pageEncoding="UTF-8"%>" or at least the pageEncoding attribute from the *.tag files.
In my case, I had no idea why the compiler complained about encoding. No UTF-8 specific characters were used and both, *.jsp and *.tag set the same encoding by directive.
If you get rid of the "The encoding specified on the page cannot be different than detected encoding for the file.", you will also get rid of the "The tag handler class was not found" and the resulting errors. -
Custom tag in included JSP page cause exception (WLS 5.1 SP 9)
An application use custom tags (JSP Tag extensions) in JSP page
included into another JSP page by means <jsp:include> instruction.
After we had installed Service Pack 9 for Weblogic 5.1
browser's call of including JSP began show an error.
When I remove Weblogic510sp9.jar and Weblogic510sp9boot.jar
references from startWebLogic.cmd, the error diagnostic disappear.
Is Service Pack Number 9 wrong?
==========================
Web browser diagnostic:
Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling
the request.
==========================
Console diagnostic:
Tue Jun 05 17:40:14 MSD 2001:<I> <WebAppServletContext-dscat> looking for taglib
uri /exttags.tld as resource /WEB-INF/e
xttags.tld in Web Application root:
Tue Jun 05 17:40:15 MSD 2001:<I> <WebAppServletContext-dscat> Generated java file:
C:\weblogic\dscat\WEB-INF\_tmp_war_ds
cat\jsp_servlet\_jsp\_opos\_catalog.java
Tue Jun 05 17:40:25 MSD 2001:<E> <WebAppServletContext-dscat> Servlet failed with
Exception
java.lang.VerifyError: (class: jsp_servlet/_jsp/_opos/_catalog, method: _jspService
signature: (Ljavax/servlet/http/Http
ServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Register 12 contains
wrong type
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:469)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java,
Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:228)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
==========================
Including JSP file:
<%@ include file="catalog_real.jsp" %>
==========================
Included JSP file:
<%@ taglib uri="/exttags.tld" prefix="dscat" %>
<dscat:pageheader>Catalog header</dscat:pageheader>
==========================
Tag extansions library (WEB-INF/exttags.tld file):
<?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>dscat</shortname>
<tag>
<name>pageheader</name>
<tagclass>ru.ibs.xbcat.view.tag.PageHeader</tagclass>
</tag>
</taglib>
==========================
Class PageHeader:
package ru.ibs.xbcat.view.tag;
import java.io.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class PageHeader extends BodyTagSupport {
public int doStartTag() throws javax.servlet.jsp.JspException {
return BodyTag.EVAL_BODY_TAG;
public int doAfterBody() throws javax.servlet.jsp.JspException {
return(SKIP_BODY);
Are you using Jikes? See if this helps ...
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=6287&utag=
Mike
"Radik Usmanov" <[email protected]> wrote:
>
>An application use custom tags (JSP Tag extensions) in JSP page
>included into another JSP page by means <jsp:include> instruction.
>
>After we had installed Service Pack 9 for Weblogic 5.1
>browser's call of including JSP began show an error.
>When I remove Weblogic510sp9.jar and Weblogic510sp9boot.jar
>references from startWebLogic.cmd, the error diagnostic disappear.
>
>Is Service Pack Number 9 wrong?
>==========================
>Web browser diagnostic:
>
>Error 500--Internal Server Error
>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
>10.5.1 500 Internal Server Error
>The server encountered an unexpected condition which prevented it from
>fulfilling
>the request.
>
>==========================
>Console diagnostic:
>
>Tue Jun 05 17:40:14 MSD 2001:<I> <WebAppServletContext-dscat> looking
>for taglib
>uri /exttags.tld as resource /WEB-INF/e
>xttags.tld in Web Application root:
>Tue Jun 05 17:40:15 MSD 2001:<I> <WebAppServletContext-dscat> Generated
>java file:
>C:\weblogic\dscat\WEB-INF\_tmp_war_ds
>cat\jsp_servlet\_jsp\_opos\_catalog.java
>Tue Jun 05 17:40:25 MSD 2001:<E> <WebAppServletContext-dscat> Servlet
>failed with
>Exception
>java.lang.VerifyError: (class: jsp_servlet/_jsp/_opos/_catalog, method:
>_jspService
>signature: (Ljavax/servlet/http/Http
>ServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Register 12
>contains
>wrong type
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Unknown Source)
> at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:469)
> at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java,
>Compiled Code)
> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442)
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:228)
> at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
> at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
> at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
>Code)
>
>==========================
>Including JSP file:
>...
> <%@ include file="catalog_real.jsp" %>
>...
>
>==========================
>Included JSP file:
>...
> <%@ taglib uri="/exttags.tld" prefix="dscat" %>
>...
><dscat:pageheader>Catalog header</dscat:pageheader>
>...
>==========================
>Tag extansions library (WEB-INF/exttags.tld file):
>
><?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>dscat</shortname>
>
> <tag>
> <name>pageheader</name>
> <tagclass>ru.ibs.xbcat.view.tag.PageHeader</tagclass>
> </tag>
>
></taglib>
>==========================
>Class PageHeader:
>
>package ru.ibs.xbcat.view.tag;
>
>import java.io.*;
>import javax.servlet.jsp.*;
>import javax.servlet.jsp.tagext.*;
>
>public class PageHeader extends BodyTagSupport {
>
> public int doStartTag() throws javax.servlet.jsp.JspException {
> return BodyTag.EVAL_BODY_TAG;
> }
>
> public int doAfterBody() throws javax.servlet.jsp.JspException {
> ...
> return(SKIP_BODY);
> }
>}
>
-
Hi,
I am trying to develop a custom tag for Marquee in JSF, my usecase is to display a value from managed bean(Dynamically). please find the code below and guide me where i have made mistake
regards
Sandeep
Component class:
package customtags;
import javax.el.ValueExpression;
import javax.faces.component.UIComponentBase;
import javax.faces.context.FacesContext;
public class Marquee extends UIComponentBase {
public static final String COMPONENT_TYPE = "marqueecomp";
public static final String RENDERER_TYPE = "marqueeRenderer";
private Object[] _state = null;
private String value;
public String getValue() {
if (null != this.value) {
return this.value;
ValueExpression _ve = getValueExpression("value");
return (_ve != null) ? (String) _ve.getValue(getFacesContext()
.getELContext()) : null;
public void setValue(String marquee) {
this.value = marquee;
public String getFamily() {
// TODO Auto-generated method stub
return COMPONENT_TYPE;
// public void encodeBegin(FacesContext context) throws IOException {
// ResponseWriter writer = context.getResponseWriter();
// writer.startElement("marquee", this);
// writer.write(getValue());
// writer.endElement("marquee");
public void restoreState(FacesContext context, Object state) {
this._state = (Object[]) _state;
super.restoreState(_context, this._state[0]);
value = (String) this._state[1];
public Object saveState(FacesContext _context) {
if (_state == null) {
_state = new Object[2];
state[0] = super.saveState(context);
_state[1] = value;
return _state;
Tag Class:
package customtags;
import javax.el.ValueExpression;
import javax.faces.component.UIComponent;
import javax.faces.webapp.UIComponentELTag;
public class MarqueeTag extends UIComponentELTag {
protected ValueExpression marquee;
public String getComponentType() {
// TODO Auto-generated method stub
return Marquee.COMPONENT_TYPE;
public String getRendererType() {
// TODO Auto-generated method stub
return Marquee.RENDERER_TYPE;
* protected void setProperties(UIComponent component) {
* super.setProperties(component); Marquee marqComp = (Marquee) component;
* if (marquee != null) { marqComp.setValue(marquee); } }
protected void setProperties(UIComponent component) {
super.setProperties(component);
Marquee marqComp = null;
try {
marqComp = (Marquee) component;
} catch (ClassCastException cce) {
throw new IllegalStateException(
"Component "
+ component.toString()
+ " not expected type. Expected: com.foo.Foo. Perhaps you're missing a tag?");
if (marquee != null) {
//marqComp.setValueExpression("value", marquee);
marqComp.setValue("fsdfsdfsdfsdfsd");
* @return the marquee
public ValueExpression getMarquee() {
return marquee;
* @param marquee
* the marquee to set
public void setMarquee(ValueExpression marquee) {
this.marquee = marquee;
*.tld file*
<?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<tlib-version>1.0</tlib-version>
<short-name>marqueecomp</short-name>
<uri>http://tags.org/marquee</uri>
<tag>
<name>marqueeTag</name>
<tag-class>customtags.MarqueeTag</tag-class>
<body-content>empty</body-content>
<attribute>
<description><![CDATA[Your description here]]></description>
<name>id</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<description><![CDATA[Your description here]]></description>
<name>value</name>
</attribute>
</tag>
</taglib>
Renderer class:
package customtags;
import java.io.IOException;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.Renderer;
public class MarqueeRenderer extends Renderer {
public void encodeBegin(final FacesContext facesContext,
final UIComponent component) throws IOException {
super.encodeBegin(facesContext, component);
final ResponseWriter writer = facesContext.getResponseWriter();
writer.startElement("DIV", component);
/*String styleClass =
(String)attributes.get(Shuffler.STYLECLASS_ATTRIBUTE_KEY);
writer.writeAttribute("class", styleClass, null);*/
public void encodeEnd(final FacesContext facesContext,
final UIComponent component) throws IOException {
final ResponseWriter writer = facesContext.getResponseWriter();
writer.endElement("DIV");
in Faces-Config:
<component>
<display-name>marqueecomp</display-name>
<component-type>marqueecomp</component-type>
<component-class>customtags.Marquee</component-class>
<component-extension>
<renderer-type>marqueeRenderer</renderer-type>
</component-extension>
</component>
<render-kit>
<renderer>
<component-family>marqueecomp</component-family>
<renderer-type>marqueeRenderer</renderer-type>
<renderer-class>customtags.MarqueeRenderer</renderer-class>
</renderer>
</render-kit>
In class path --->marquee.taglib.xml
<?xml version="1.0"?>
<!DOCTYPE facelet-taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
"http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
<facelet-taglib>
<namespace>http://tags.org/marquee</namespace>
<tag>
<tag-name>marqueeTag</tag-name>
<component>
<component-type>marqueecomp</component-type>
<renderer-type>marqueeRenderer</renderer-type>
</component>
</tag>
</facelet-taglib>
*.xhtml file*
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich" xmlns:mycomp="http://tags.org/marquee">
<head>
<title>DEBTDOC Home Page</title>
<meta http-equiv="keywords" content="enter,your,keywords,here" />
<meta http-equiv="description"
content="A short description of this page." />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../css/common.css"></link>
<script language="javascript" src="../script/common.js"></script>
</head>
<body>
<f:view>
<mycomp:marqueeTag value="hello World"></mycomp:marqueeTag>There exist the JSTL SQL taglib, but I don't recommend this. It should only be used for quick development and testing. For database connectivity, rather create a data layer with DAO classes which you on its turn just plug in your business layer (with servlets).
-
How to display an xml file contents in jsp as tree view
hi,
Iam trying to read an xml file and display the structure in jsp as tree view, can any one help meUse a [XML or DOM parser|http://java-source.net/open-source/xml-parsers] to read a XML file into a tree structure of Java objects.
Use the [Collections API|http://java.sun.com/docs/books/tutorial/collections/index.html] to get hold of the relevant elements in a tree structure.
Use JSTL´s [c:forEach|http://java.sun.com/javaee/5/docs/tutorial/doc/bnakh.html] tag to iterate over a Collection in JSP.
Use HTML´s [<ul>/<li>|http://www.w3.org/TR/REC-html40/struct/lists.html#h-10.2] or [<dl>/<dt>/<dd>|http://www.w3.org/TR/REC-html40/struct/lists.html#h-10.3] tags to represent a tree in HTML.
Maybe you are looking for
-
How do I show an image in a DataGrid column?
I'm not sure that this is possible. I would like to show an image in a datagrid column based on the data that the grid is bound to. Is there any way to do this? I'm using Beta 3. Thanks!
-
Iphone 5 won't show up on itunes
I just recently got the Iphone 5 and I've been trying to connect it to Itunes but it won't recognize it. My computer does, but itunes won't. How do I fix this?
-
Weird print/pdf error when images are over a table
Hi all I'm having a trouble with Pages where if I have an image over a table (so it looks like it's in the box) it can cause the table borders to go missing. As this is a little hard to describe I have made a pdf file showing the problem... http://ho
-
SAP Webdispatcher and URL redirect - 3 systems, one webdispatcher
Good day, I have the following scenario, webdispatcher in the DMZ that redirects to Enterprise Portal internally. There is a role in EP which is setup for webgui to 2 seperate ERP systems. Is it possible to have 3 seperate redirects on the webdispatc
-
Hello, after I implemented my Membership Provider and got it working i´m trying to implement the login form. After the process of user password validation is complented (Not done by membership provider, it only checks if user exists in DB) is complet